-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate EntityManager on Glassfish doesn't update data
PostPosted: Wed Jun 20, 2007 1:08 pm 
Newbie

Joined: Wed Jun 20, 2007 12:47 pm
Posts: 2
Hello,

I am using Hibernate persistence provider (Hibernate EntityManager version 3.3.1 GA and Hibernate Core version 3.2) on Glassfish (Version 1 Update 2). The database is Oracle XE. This is a JSF application where the managed bean is using application managed extended scoped persistence context to access database.

Even though I am able to view the data, I am not able to change it. It is quite strange. I can see the SQL generated by the Hibernate, and interestingly there are no update/insert statements generated when I change or insert an existing or new entity. No exceptions either.

Could configuration of Hibernate provider on Glassfish be an issue? I do not see anything strange going on in the domain's log file. Basically I copied the right jars from Hibernate core and Hibernate Entity Manager to the Glassfish lib folder. Nothing exceptional there. Below is a list of jars that I have copied to Glassfish/lib folder.

1) hibernate-entitymanager/hibernate-entitymanager.jar
2) hibernate-entitymanager/lib/ejb3-persistence.jar
3) hibernate-entitymanager/lib/hibernate-annotations.jar
4) hibernate-entitymanager/lib/hibernate-commons-annotations.jar
5) hibernate-entitymanager/lib/jboss-archive-browsing.jar
6) hibernate-entitymanager/lib/hibernate-validator.jar
7) hibernate-core/hibernate3.jar
8) hibernate-core/lib/antlr-2.7.6.jar
9) hibernate-core/lib/asm.jar
10)hibernate-core/lib/asm-attrs.jar
11)hibernate-core/lib/c3p0-0.9.1.jar
12)hibernate-core/lib/cglib-2.1.3.jar
13)hibernate-core/lib/commons-collections-2.1.1.jar
14)hibernate-core/lib/commons-logging-1.0.4.jar
15)hibernate-core/lib/concurrent-1.3.2.jar
16)hibernate-core/lib/ehcache-1.2.3.jar
17)hibernate-core/lib/javassist.jar
18)hibernate-core/lib/log4j-1.2.11.jar
19)hibernate-core/lib/dom4j-1.6.1.jar

Is there a known bug in this regard? Note that I switched the JPA provider to Toplink, and Toplink behaves normally.

Thanks a lot,
Rima.


Top
 Profile  
 
 Post subject: Issue resolved
PostPosted: Thu Jun 21, 2007 5:36 pm 
Newbie

Joined: Wed Jun 20, 2007 12:47 pm
Posts: 2
Hi again,

The issue wasn't with Hibernate. It was rather with the code that was generated by NetBeans 5.5 and also, most possibly, with TopLink. Please find the details at this Glassfish Forums thread -

http://forums.java.net/jive/thread.jspa ... 9&tstart=0

Regards,
Rima.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.