[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[eclipselink-users] Dynamic DDL_GENERATION and execution at database
|
Hi,
I've some questions to the automatic DDL generation and execution at
database.
As it seems the DDL statements are checked with database layout at first
connection after application startup.
If the tables doesn't exist in DB they are created as it is supposed to be.
If the tables already exist and the application is restarted there is
always an ugly exception message in eclipselink log that the tables
already exist.
First I've thought it is possible to check the DB first with an SELECT.
On Exception I wanted to use another EntityManagerFactory, with enabled
DDL_GENERATION property set, to create the tables.
But then the DDL_GENERATION is not enabled during first connection to DB
after application start and there won't be created any tables.
Do you know any solution for this?
Is this DDL_GENERATION limitation on _first_ connection like it ought to
be, do I anything wrong or is it a bug?
Thanks
Markus