I have the following problem: I'm using DataNucleus with JDO for my program. My jdoconfig.xml contains the following line:
<property name="datanucleus.autoCreateSchema" value="true"/>
If I start my program now and the database doesn't exist yet it is created and everything works fine.
But if I stop my program and start it again and the database already exists I get errors: Constraints 'USER_U1' and 'USER_U1' have the same set of columns, which is not allowed.
How can I tell m开发者_StackOverflow中文版y program to only create the schema if it doesn't exist yet?
精彩评论