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;
21 public class EclipselinkJpaCustomizer implements JpaCustomizer {
23 * Creates a new EclipselinkJpaCustomizer object.
25 public EclipselinkJpaCustomizer() {
32 * @param aPersistenceUnit DOCUMENT ME!
33 * @param aJpaProperties DOCUMENT ME!
36 public void customize(PersistenceUnitDescription aPersistenceUnit,
37 Map<String, String> aJpaProperties) {
38 // Hack to make JNDI lookup of the datasource work with toplink
39 aJpaProperties.put("eclipselink.session.customizer",
40 JndiSessionCustomizer.class.getName());
42 // DDL generation for toplink
43 aJpaProperties.put("eclipselink.ddl-generation", "create-tables");
49 * @return DOCUMENT ME!
52 public ITableFilterSimple getJpaTables() {
53 return new EclipselinkTables();