• 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.

 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!