May 23rd, 2008, 07:07 AM
<persistence-context /> provide non functional entityManager
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
May 23rd, 2008, 08:32 AM
Do you have a commit in the end state?