I am trying to generate persistence mappings for JPA from database. IDEA is able to generate the mappings alright , but does not add in the constraints such unique constraints into the annotation meta data.
HBM2JAVA , the tool that is shipped with hibernate and configured with eclipse can do this additional step easily. I am trying to integrate hibernate validator framework into my application and this lack of support from IDEA is hurting me really bad since this is an huge existing database and there is no way I can manually do this for every entity.
I tried looking into the settings for the mapping generation, I did not find anything that talks about constraints. I wonder if IDEA lacks this feature or is there some setting some place that I am missing.