How to generate Java object for Hibernate from existing DB?

How to generate Java object for Hibernate from existing DB?
Is there any feature like for EJB3 entities?
(IDEA 7M1)

Message was edited by:
Nikita

3 comments
Comment actions Permalink

Hello Nikita,

The feature is planned.

At the moment you can use fake JPA facet to generate mappings as far as
Hibernate supports EJB3 annotations & orm.xml's.

Regards,
Gregory Shrago

Nikita wrote:

How to generate Java object for Hibernate from existing DB?
Is there any feature like for EJB3 entities?
(IDEA 7M1)

Message was edited by:
Nikita

0
Comment actions Permalink

Use Eclipse + Exadel Studio Pro (both are free now) to generate all ORM stuff, then open them in idea to work: that's what I did.

0
Comment actions Permalink

Is this the "Generate Persistence Mapping" in the module context menu for JPA enabled modules? You've got to have a data source configured to point to the database schema you want to map as well.

--
Tim

0

Please sign in to leave a comment.