This setting works fine if the database is empty, but if the tables are already created, i get error messages in the logfile.
Now the code still works fine so no problem, but getting [ERROR] written to the logfile everytime the programm is run is not something I want.
I would find it tedious to have to change the value in persistence.xml every time when i need either create or validate functionality. So maybe you can tell me if it is possible to manually initiate validation/creation.
OR you can tell me i can leave hbm2ddl.auto perpetually to create, because it causes no harm and there is a way to suppress those error messages without suppressing all hibernate related errors.
Also the information for the behaviour of create is not clear regarding the dropping of tables when the database is not empty, I'll quote your documentation:
Quote:
hibernate.hbm2ddl.auto Automatically validates or exports schema DDL to the database when the SessionFactory is created. With create-drop, the database schema will be dropped when the SessionFactory is closed explicitly.
e.g. validate | update | create | create-drop
some sources reported a deleting of tables, my experience is it does not delete the tables prior to creating, it does give me ERROR messages though as stated above.
Thanks already!