Page 1 of 1

Saving to the database

Posted: Tue Jul 24, 2012 7:48 am
by needinfo
Hello,

I'm somewhat new to the broadleaf, and I'm struggling over an issue: whatever changes I do in the admin page, they don't save after I restart the server.

At first I thought it was because of hsql, but after moving to MySQL the problem still exists.

It's been days and I can't find any decent information on the topic.

Appreciate your help.

Re: Saving to the database

Posted: Wed Jul 25, 2012 9:57 pm
by dilupa.m
Are you running the site-war with this? if you do the persistance xml is configured to drop the schema at the end of each session. and when you restart a fresh set of data will get loaded.
Look inside META-INF\persistence-mycompany.xml

The other reason might be, the admin doesnt show stored users, products by default. You need to go to the search panel on top of a column and press enter. This will list down all required results in each panel.

Re: Saving to the database

Posted: Thu Jul 26, 2012 9:25 am
by aazzolini
I'm also going to go with the persistence being configured to create-drop, which will delete all changes on startup. Change that to "update" and your data will be safe!