This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB3 : override column mapping  RSS feed

 
paddy Mahadeva Iyer
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a mapped super class that maps to a field, lets say "id" (not primary key).

now i have the child class which is an entity bean and here i want to over rite the id field.



But still when i deploy i get a duplicate property exception ... no idea why?
 
paddy Mahadeva Iyer
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my first post made some spelling mistakes. So just for the record

i need to over ride the mapping for the id field. Let say i want to do something extra in my getter and setter rather than whats available to me. For this i am using the @AttributeOverride annotation. But it seems not to be working!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!