Should "Import database schema" work?
When creating a new project, I can enable Hibernate support and there is an option for letting Hibernate import database schema. And it looks good; it shows me all the tables and tells me which classes with which properties it will create. The problem is that IDEA never creates any classes. It just creates an empty package with no classes and no errors...
Is this a feature that is coming or should it work now?
btw, I am using Linux and IDEA build 7744...
Regards,
BTJ
请先登录再写评论。
Hello Bjørn,
Last time I tested this feature it worked. Could you specify your settings
in New project wizard and Import database dialog? I.e. does "Create default
hibernate configuration" in New wizard On or Off, do you generate hbm.xml,
orm.xml or JPA annotations mapping, etc, etc? Thank you.
The only known open issue is:
http://www.jetbrains.net/jira/browse/IDEADEV-24769
but it looks different to yours.
Alexander.
Create default hibernate configuration = Off
only try to generate JPA Annotation mappings...
I am using a PostgreSQL database with a small db with just 8 tables...
(I have also attached a snapshot..)
BTJ
Attachment(s):
hibernate.png
Hello Bjørn,
Thanks a lot, reproduced. This is the particular case of http://www.jetbrains.net/jira/browse/IDEADEV-24833
(we thought it is fixed). If mapping is JPA and "Create default configuration"
is Off, then bug happens. Workaround is to create default configuration or
use hibernate (hbm) mapping.
Created http://www.jetbrains.net/jira/browse/IDEADEV-25260.
Alexander.
Not sure why I didn't choose Create default configuration file because I do need it... But at least you found a bug... :)
BTJ