Hibernate: want to genernate .hbm from .java (Idea9)

Hello,

I'm learning sprint/hibernate and I'm hoping IDEA 9 can do everything I want.

I've successfully generated .hbm files from an existing database (configure the datasource... select "Generate Persistence Mapping" -> "By Database Schema").

i.e. database -> .hbm

If I wanted to do this in reverse, is there a way to start with my POJO and generate the hbm and the database from the java source ?

i.e. .java -> .hbm -> database

Appreciate any tips!

Cheers
vikingsteve

2 comments
Comment actions Permalink

I dont think I am incorrect in saying this but that feature does not seem to be something that is possibly doable in Intellij. I have done the same in JDeveloper however that is a different IDE and thus not pertinent to your question I reckon.

0
Comment actions Permalink

Ok thanks. I'm disappointed that there isn't a plugin for this.

I'll have a look at XDoclet instead.

0

Please sign in to leave a comment.