I Need a help to change the database properties in Broadleaf to auto update when reinstall the Broadleaf.
Please give me the answer to change the database properties. Thanks in advance.
I Need a help to change the database properties in Broadleaf to auto update when reinstall the Broadleaf.
Please give me the answer to change the database properties. Thanks in advance.
I assume you're talking about the Hibernate hbm2ddl auto settings that cause Hibernate to drop all tables, recreate the schema and populate seed data. Out-of-the-box, Broadleaf has 4 Persistence Units that you will need to configure to get the app to behave this way on startup. In your application's core property file (for example: core/src/main/resources/runtime-properties/common-shared.properties
), make sure the following values are set:
blPU.hibernate.hbm2ddl.auto= create
blEventPU.hibernate.hbm2ddl.auto= create
blCMSStorage.hibernate.hbm2ddl.auto = create
blSecurePU.hibernate.hbm2ddl.auto= create