Here is the code

  | public class FooHome extends EntityHome<Foo> {
  |     @In EntityManage em
  |     @Transactional
  |     public String persist() {
  |       getEntityManager().joinTransaction();
  |       getEntityManager().persist( getInstance() );
  |       getEntityManager().flush();
  |       assignId( PersistenceProvider.instance().getId( getInstance(), 
getEntityManager() ) ); // This is line 32
  |       createdMessage();
  |       return "persisted";
  |    }
  | }
  | 
PersistenceProvider.instance() == null

Thanks

Qing

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

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

Reply via email to