@Override
public void customize(PersistenceUnitDescription aPersistenceUnit,
Map<String, String> aJpaProperties) {
- // Hack to make JNDI lookup of the datasource work with toplink
- aJpaProperties.put("eclipselink.session.customizer",
- JndiSessionCustomizer.class.getName());
-
+
// DDL generation
- aJpaProperties.put("eclipselink.ddl-generation", "create-tables");
-
- // Use JTA transaction type
- aJpaProperties.put("javax.persistence.transactionType", "JTA");
+ aJpaProperties.put("eclipselink.ddl-generation", "drop-and-create-tables");
// DDL generation
FileSystemUtils.createDir(new File("target/sql"));