Why does'nt IDEA generate constraints when generating persistence mappings from Database
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.
thanks
-Satish
Please sign in to leave a comment.
Please file a ticket describing what constraints you miss.
On 3/14/11 10:23 PM, Satish wrote:
>
>
>
>
--
Gregory Shrago
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop With Pleasure!"
Primarily unique constraints on the table are the ones that are not generated at the entities when I generate persistence mappings from database. Essentially I am trying to generate JPA entities from a datasource.
Do you want me to open a bug/feature request for this (if so, can you point me to the URL of tracker where I can open the bug) or if this is a setting or a feature can you point me to any relevant documentation.
thanks
-Satish