Results 1 to 2 of 2

Thread: <persistence-context /> provide non functional entityManager

  1. #1
    Join Date
    May 2008
    Posts
    227

    Default <persistence-context /> provide non functional entityManager

    Hi all
    i am using the @PersistenceContext annotation to get an entity manager,i got a proxy to one as usual but it is not a functional one ,as it cannot persist any entity,it does not raise any error or exception ,however after calling persist() nothing change,no database hit ,and no change to the entity id(stays null) which is auto-generated
    where is the problem ?is the duplication of the 2 entityManagers make a conflict
    actually i use the <persistence-context /> not because i needone but to not get a hibernate session closed exception
    can any one provide me with a working solution
    thanx
    joe

  2. #2
    Join Date
    Mar 2008
    Posts
    170

    Default

    Do you have a commit in the end state?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •