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;
21 public class ToplinkJpaCustomizer implements JpaCustomizer {
23 * Creates a new ToplinkJpaCustomizer object.
25 public ToplinkJpaCustomizer() {
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("toplink.session.customizer",
40 JndiSessionCustomizer.class.getName());
42 // DDL generation for toplink
43 aJpaProperties.put("toplink.ddl-generation", "create-tables");
49 * @return DOCUMENT ME!
52 public ITableFilterSimple getJpaTables() {
53 return new ToplinkTables();