I didn't use a hibernate.cfg.xml or hibernate.properties when running the
application as an EAR using jboss, accessing hibernate classes with a stateless
session bean. I made a HAR which is a basic archive (just like a jar except
.har instead) and put hibernate-service.xml in the META-INF
I was having the same problem too, and for a day and a half nearly went out of
my mind trying to figure out why the data wouldn't save! Then I realized it was
simple - I forgot to add session.flush() after saving but before closing the
session. With jboss you use a HAR and put it in an EAR. By
Can you post your hibernate.cfg.xml file for reference.
Regards.
Lokesh.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3894370#3894370
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894370
I've been having the same problem for 2 weeks. Its so bad that my
management told me to stop using Hibernate, but I keep playing with it hoping I
can figure it out. The problem has to be something stupid, but its equally as
stupid that you can execute session.save() and not get an
Here's a little more I found out:
During a save Hibernate is executing a method in class
AbstractSaveEventListener that is testing whether a variable useIdentityColumn
is true or false. It's false in mine (I don't know why, I do have an indentity
column defined). It looks to