java - Hibernate AttributeOverride is not working -
i have child class overrides getter (because adds different behavior) of super class. using @attributeoverride it's throws error org.hibernate.mappingexception: duplicate property mapping of name found in com.hbmap.domain.product too. i not sure if doing wrong. product: @entity @table(name = "product") @access(accesstype.property) @attributeoverride(name = "name", column = @column(name = "name") ) public class product extends properties { private long id; @id @column(name = "id") @generatedvalue(strategy = generationtype.auto) public long getid() { return id; } public void setid(long id) { this.id = id; } @override public string getname() { // different superclass return super.getname(); } } properties (super class): @mappedsuperclass @access(accesstype.property) public class properties { private string name; @column(name="name") public string getname() { return nam...