[jboss-user] [JBoss Seam] - EntityHome validation error (Chapter 14 example)

trickyvail do-not-reply at jboss.com
Thu Apr 26 17:25:34 EDT 2007


I think you mave have failed to instantiate an instance of Person inside EntityHome.
@Name("personHome")
  | public class PersonHome extends EntityHome<Person>  {
  | 
  | 	private static final long serialVersionUID = 219059304048820709L;
  | 
  |         public void setPersonId(Long id)
  |         {
  |                 setId(id);
  |         }
  | 
  |         public Long getPersonId()
  |         {
  |                 return (Long) getId();
  |         }
  | 
  |         @Override
  |         protected Person createInstance()
  |         {
  |               Person person = new Person();
  |               return person;
  |          }
  | }
  | 


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

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



More information about the jboss-user mailing list