• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

overrides attribute

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I tried to understand the overrides attribute from orielly..but the thing is not just clear to me. I am yet to appreciate why is it actually needed. Please explain me.
 
Benoît de Chateauvieux
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

For me, the specs (9.1.10) are clear:

The AttributeOverride annotation is used to override the mapping of a Basic (whether explicit or default) property or field or Id property or field.

The AttributeOverride annotation may be applied to an entity that extends a mapped superclass or to an embedded field or property to override a basic mapping defined by the mapped superclass or embeddable class.
If the AttributeOverride annotation is not specified, the column is mapped the same as in the original mapping.


Hope it helps,

Beno�t
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic