Hi all,
I have an abstract superclass which has 2 fields:name and description. I use this superclass throughout my application by extending it as needed. My question is, in some of my subclasses, I want to add an annotation or change an annotation:
superclass
Code:
@Column(nullable = false)
public String getName()
{return(name);}
subclass
Code:
@RoleName
@Column(nullable = false, unique = true)
public String getName()
{return(name);}
Is it possible to override the method like that? I am getting this error.
Caused by: org.hibernate.MappingException: Duplicate property mapping of name found in com.walterjwhite.seamCore.model.security.Role
I would like to avoid any sorts of duplication when possible.
Thanks,
Walter