2  * SCJD assignment, URLyBird, Erik Brakkee.
 
   3  * Candidate ID: sr1399267.
 
   5 package org.wamblee.support.persistence.eclipselink;
 
   7 import org.dbunit.dataset.filter.ITableFilterSimple;
 
   9 import org.wamblee.support.persistence.JpaCustomizer;
 
  10 import org.wamblee.support.persistence.PersistenceUnitDescription;
 
  19 public class EclipselinkJpaCustomizer implements JpaCustomizer {
 
  21      * Creates a new EclipselinkJpaCustomizer object.
 
  23     public EclipselinkJpaCustomizer() {
 
  28     public void customize(PersistenceUnitDescription aPersistenceUnit,
 
  29         Map<String, String> aJpaProperties) {
 
  30         // Hack to make JNDI lookup of the datasource work with toplink
 
  31         aJpaProperties.put("eclipselink.session.customizer",
 
  32             JndiSessionCustomizer.class.getName());
 
  34         // DDL generation for toplink
 
  35         aJpaProperties.put("eclipselink.ddl-generation", "create-tables");
 
  39     public ITableFilterSimple getJpaTables() {
 
  40         return new EclipselinkTables();