Hi, > Have a look > http://openejb.apache.org/3.0/configuring-persistenceunits-in-tests.html Ahh, i forgot the persistence unit prefix. props.put(PERSISTENCE_UNIT +".openjpa.jdbc.SynchronizeMappings", "buildSchema(SchemaAction='dropDB,add')"); This shortens the ant build script. ;) Thx