• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Persistence : Same field in subclass

 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
What will happen, if an enity subclass declares a field that is already in the superclass, and field based access is used?
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a number of things that need to be considered here, like the column names used for the fields, the mapping strategy used for the class hierarchy,...
[ December 26, 2006: Message edited by: Edvins Reisons ]
 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any place whre I can get the explanation of all the scenarios?
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try the JPA specification, the Java 5 EE tutorial from Sun, the downloadable book "Mastering EJB 3.0",...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic