This content has been marked as final.
Show 2 replies
-
1. Re: No abstract accessor for field found
k_dey Nov 25, 2002 4:49 PM (in response to k_dey)Sorry, I forgot to attach the files
-
2. Re: No abstract accessor for field found
andyjeff Nov 26, 2002 2:31 AM (in response to k_dey)You have a field in your class UserEJB called "user_id", yet with CMP you need to define abstract accessor methods for all CMP fields. So you need a method like
public abstract String getUser_id();
and CMP will implement the method for you. Similarly you will need a method like
public abstract void setUser_id(String user_id);
This was not the case with EJB 1.1 but with CMP in EJB 2.0 you do it like this.
HTH