• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@Version and @SecondaryTable

 
Alexandre Fradin
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I get Enthuware's simulator. There is a answer wich says that "Version attribut cannot be mapped to a secondary table".

This is the explanation :

"The version property should be mapped to the primary table for the entity class; application that map the Version property to a table other than the primary table will not be portable."

I don't find this anywhere in the specs.

So is it true or false?....

Thanks for your help.
 
Sergio Tridente
Ranch Hand
Posts: 329
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at section 9.1.17 of the ejb-persistence specification.

It states:

Only a single Version property or field should be used per class; applications that use more than one Version property or field will not be portable.
The Version property should be mapped to the primary table for the entity class; applications that map the Version property to a table other than the primary table will not be portable.

[ August 02, 2008: Message edited by: Sergio Tridente ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic