[jboss-user] [JBoss Seam] - Re: NullPointerException when get a row from a list

dago do-not-reply at jboss.com
Wed Feb 7 21:23:45 EST 2007


this is the javabean:


  | @Entity
  | @Name("cnMessage")
  | public class CnMessage implements Serializable
  | {
  |   private int idt;
  |   private String cnMsg;
  |   private String enMsg;
  | 
  |    
  |   public CnMessage() {}
  | 
  |   public CnMessage(
  |           int idt,
  |           String cnMsg,
  |           String enMsg)
  |   {
  |     this.idt = idt;
  |     this.cnMsg = cnMsg;
  |     this.enMsg = enMsg;
  |   }
  | 
  |   @Id  @GeneratedValue(strategy=GenerationType.IDENTITY)
  |   public int getIdt()
  |   {
  |     return idt;
  |   }
  | 
  |   public void setIdt(int idt)
  |   {
  |     this.idt=idt;
  |   }
  | 
  |   public String getCnMsg()
  |   {
  |     return cnMsg;
  |   }
  | 
  |   public void setCnMsg(String cnMsg)
  |   {
  |     this.cnMsg=cnMsg;
  |   }
  | 
  |   public String getEnMsg()
  |   {
  |     return enMsg;
  |   }
  | 
  |   public void setEnMsg(String enMsg)
  |   {
  |     this.enMsg=enMsg;
  |   }
  | 
  | 
  | 
  |    
  | }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012770#4012770

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012770



More information about the jboss-user mailing list