Hibernate version: 3.2cr2
Hibernate Tools version: 3.2 beta6
Hibernate Annotations version: 3.2cr1
Name and version of the database you are using: HSQL 1.8
Hi,
i am currently trying out some things with hibernate and have a little problem.
What i did successful:
- Create my object model as Java class
- Used annotations to map my class (Id, Basic, Transient)
- Create a hibernate.cfg.xml with the Hibernate Tools wizard
- Added a property "mapping" pointing to the annotated class
Now i tried to generate the hbm.xml and the database scheme from the annotations. I used the Hibernate Console wizard, enabled EJB3 annotations, added the hsql library and finished the wizard. I cant see my class listed in "Configuration" as i expected (and as it works with xml mapped classes). I tried to find the relevant part in the documentation, but didn't succeed.
Is the generation of hbm.xml and database scheme possible in this way? Or which way is the best, to generate these parts from java class code with the Eclipse Hibernate Tools?
Thanks for your help, David
|