thanks, I had to update the
The strange thing is that I had to update it at the server level. works fine now.
I don't understand the resolution here.
I have the same problem with the Trailblazer app losing data after jboss restart. Is this due to the jboss changing tables which causes data to be dropped?
There is configration that commits database changes. If it is not set correctly, your updates are rolled back.
Make sure that is set as follows:
<property name="hibernate.hbm2ddl.auto" value="update"/>
If the "value" is set to anything else, your database changes are rolled back when you shutdown the server or redeploy your app. This parameter can be found in one of two places: either your particular app persistence.xml
or at the server level:
Hope that helps.
Thanks for the sharing. But could you please tell me where you found this config info?
There was a post on this form in regards with the same problem. Try and search presistance problem or data not presisated.