Announcement Announcement Module
Collapse
No announcement yet.
<persistence-context /> provide non functional entityManager Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • <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
    Do you have a commit in the end state?

    Comment

    Working...
    X