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

4 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

> is there any way to generate the NamedQuery automatically in IDEA
AFAIR, there is no such feature.

Alexander.

0

Please sign in to leave a comment.