Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] DDL warning because table exists

Hi all,

In my persistence.xml I'm using eclipselink.ddl-generation=create-tables

If my application is started the 2nd time, the tables do already exist
(of course).
This leads to the following warning:

[EL Warning]: 2009.02.18
09:21:33.154--ServerSession(27887470)--Exception [EclipseLink-4002]
(Eclipse Persistence Services - 1.0.2 (Build 20
081024)): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: SQL Exception: Table/View 'RECORDS' already exists
in Schema 'SMILA'.
Error Code: 30000
Call: CREATE TABLE RECORDS (ID VARCHAR(1024) NOT NULL, SOURCE
VARCHAR(1024), RECORD BLOB, PRIMARY KEY (ID))


In my opinion there should not be a warning at all. Instead of executing
the create table SQL statement it should be checked if the table already
exists and only execute the SQL if it does not.

Is it possible to somehow suppress this warning ? Changing the log level
is not what I'm looking for :-)

Bye,
Daniel


Back to the top