-
May 23rd, 2008, 07:07 AM
#1
<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
-
May 23rd, 2008, 08:32 AM
#2
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
-
Forum Rules