1 package org.wamblee.support.persistence.toplink;
5 import org.dbunit.dataset.filter.ITableFilterSimple;
6 import org.wamblee.support.persistence.JpaCustomizer;
7 import org.wamblee.support.persistence.PersistenceUnitDescription;
9 public class ToplinkJpaCustomizer implements JpaCustomizer {
11 public ToplinkJpaCustomizer() {
16 public void customize(PersistenceUnitDescription aPersistenceUnit, Map<String, String> aJpaProperties) {
17 // Hack to make JNDI lookup of the datasource work with toplink
18 aJpaProperties.put("eclipselink.session.customizer", JndiSessionCustomizer.class
21 // DDL generation for toplink
22 aJpaProperties.put("eclipselink.ddl-generation", "create-tables");
26 public ITableFilterSimple getJpaTables() {
27 return new ToplinkTables();