It's not a secret anymore!*
The moose likes Object Relational Mapping and the fly likes moving to hibernate annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "moving to hibernate annotations" Watch "moving to hibernate annotations" New topic
Author

moving to hibernate annotations

manish ahuja
Ranch Hand

Joined: Oct 23, 2003
Posts: 312
Hi All,

We currently have a Hibernate ORM implementation using the earlier approach of (cfg+hbm xml) files. We are now planning to move towards annotations. I understand for tables all the declarations in the hbm xml files will go as annotations in the POJO class. How are the cfg settings moved to annotations.

Also are annotations alternative available for all tasks earlier executed through xml based files.

Do post your thoughts


Regards,

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: moving to hibernate annotations
 
Similar Threads
Hibernate annotation generation IDE support
Location for configuration files and hbm files
Hiberante: Annotations Vs HBM Vs XML
Query on MiddleGen ..hbm2java task
Hibernate running outside the servlet