Sorry, the factory method in the above snippet should read,

...
  | @Factory(value="person")
  |   public void loadPerson() {
  |     if (pid != null) {
  |       person = (Person) em.find(Person.class, pid);
  |     } else {
  |       person = new Person ();
  |     }
  |   }
  | ...

No value should be passed into the loadPerson method.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090377
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to