2 * SCJD assignment, URLyBird, Erik Brakkee.
3 * Candidate ID: sr1399267.
5 package org.wamblee.support.persistence.toplink;
7 import org.dbunit.dataset.filter.ITableFilterSimple;
9 import org.wamblee.support.persistence.JpaCustomizer;
10 import org.wamblee.support.persistence.PersistenceUnitDescription;
19 public class ToplinkJpaCustomizer implements JpaCustomizer {
21 * Creates a new ToplinkJpaCustomizer object.
23 public ToplinkJpaCustomizer() {
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("toplink.session.customizer",
32 JndiSessionCustomizer.class.getName());
34 // DDL generation for toplink
35 aJpaProperties.put("toplink.ddl-generation", "create-tables");
39 public ITableFilterSimple getJpaTables() {
40 return new ToplinkTables();