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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to