It seems that jpa is what makes me ask a lot of questions.
Adding this
<property name="toplink.ddl-generation" value="create-tables"/>
my JPA application always creates tables at startup, which leads to exceptions if the tables already exist. I would like JPA to check if existing tables exist and if they did not create them, however I could not find the value for the property above that does this.
So, if I just turn it off, is there a way to tell JPA manually at some point in order to create all the tables?
Refresh here the exception I get
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'tags' already exists Error Code: 1050 Call: CREATE TABLE tags (ID BIGINT AUTO_INCREMENT NOT NULL, NAME VARCHAR(255), OCCURRENCE INTEGER, PRIMARY KEY (ID))
MySQLSyntaxErrorException ?! Now that this is wrong,
Nils
source share