This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes how to use hibernate annotations  with abstract methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "how to use hibernate annotations  with abstract methods" Watch "how to use hibernate annotations  with abstract methods" New topic
Author

how to use hibernate annotations with abstract methods

Debasish Mahato
Greenhorn

Joined: Feb 09, 2010
Posts: 4
I have a abstract pojo that has a abstract getter . hibernate annotation for mapping the field to table column has been provided in the child class that extends this abstract class but hibernate gives error while compiling saying org.hibernate.MappingException: Duplicate property mapping .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use hibernate annotations with abstract methods
 
Similar Threads
Hibernate 2.1 mapping
Problem using Oracle stored procedure with Hibernate
Hibernate mapping:Bean class & MySQL DB View
Inheritance / Association in Hibernate
xdoclet and hibernate