[jboss-user] [EJB 3.0] - EJB3 entity inheritance override getter in subclass
asafz
do-not-reply at jboss.com
Sun Jun 28 03:49:29 EDT 2009
Hi,
I have an abstract entity bean class that have a string member named user:
private String user;
public String getUser(){
return user;
}
In one of the subclasses I want to override the getUser method to do the following:
public String getUser(){
if (user == null){
return "nullUser";
}
reutrn user;
}
I'm receiveing an Exception from jboss that I cannot override this method.
Is it allowed to override bean getters? what is the correct way to do it?
thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240541#4240541
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240541
More information about the jboss-user
mailing list