Cannot see Java EE: Structure in Project view
Hi, I'm using IntelliJ IDEA 9 M1 in Mac
I want to create a new JPA entity.
The IDEA help asked me to go to view as Java EE: Structure in Project view but I cannot see the option.
What should I do to enable the view as?
Or is there another way to create JPA entity from existing database table?
Thanks a bunch!
Robert
请先登录再写评论。
Hi.
Java EE structure view is now splitted into several facet-specific views. To get JPA tree view make sure you have added JPA facet to a module. Then special Persistence tool window should appear.
Alexander.
I see the Persistence tool window, i'm adding new Entity, but I don't see a way to create it based on existing database table.
Is there any way to do this?
Thanks a lot!
Robert
Forget about the above question, it's in Generate Persistence Mapping (the last in the context menu) -> by database schema.
By the way, is there any way to generate the NamedQuery automatically in IDEA. that can be a good addition for future version?
Thanks,
Robert
> is there any way to generate the NamedQuery automatically in IDEA
AFAIR, there is no such feature.
Alexander.