Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unmapped table properties

 
Songezo Nkukwana
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic