wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Unmapped table properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Unmapped table properties" Watch "Unmapped table properties" New topic
Author

Unmapped table properties

Songezo Nkukwana
Ranch Hand

Joined: Nov 27, 2008
Posts: 51
Hi, using hibernate mapping .. Is it possible to partially map a class to a table leaving out some table columns in the mapping xml file? And, is it possible to have more properties in the mapped class which do not exist as a column in the table?
Ketan Jambhekar
Ranch Hand

Joined: Mar 26, 2007
Posts: 37
Yeah it can be done.. Its up to you which columns you want and which you dont. You can have attributes in the bean which are not present in the mappings.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unmapped table properties