+/*
+ * SCJD assignment, URLyBird, Erik Brakkee.
+ * Candidate ID: sr1399267.
+ */
package org.wamblee.support.persistence.eclipselink;
-import java.util.Map;
-
import org.dbunit.dataset.filter.ITableFilterSimple;
+
import org.wamblee.support.persistence.JpaCustomizer;
import org.wamblee.support.persistence.PersistenceUnitDescription;
-public class EclipselinkJpaCustomizer implements JpaCustomizer {
+import java.util.Map;
+
- public EclipselinkJpaCustomizer() {
+/**
+ * DOCUMENT ME!
+ *
+ * @author $author$
+ * @version $Revision$
+ */
+public class EclipselinkJpaCustomizer implements JpaCustomizer {
+/**
+ * Creates a new EclipselinkJpaCustomizer object.
+ */
+ public EclipselinkJpaCustomizer() {
// Empty
}
-
+
+ /**
+ * DOCUMENT ME!
+ *
+ * @param aPersistenceUnit DOCUMENT ME!
+ * @param aJpaProperties DOCUMENT ME!
+ */
@Override
- public void customize(PersistenceUnitDescription aPersistenceUnit, Map<String, String> aJpaProperties) {
+ public void customize(PersistenceUnitDescription aPersistenceUnit,
+ Map<String, String> aJpaProperties) {
// Hack to make JNDI lookup of the datasource work with toplink
- aJpaProperties.put("eclipselink.session.customizer", JndiSessionCustomizer.class
- .getName());
-
+ aJpaProperties.put("eclipselink.session.customizer",
+ JndiSessionCustomizer.class.getName());
+
// DDL generation for toplink
- aJpaProperties.put("eclipselink.ddl-generation", "create-tables");
+ aJpaProperties.put("eclipselink.ddl-generation", "create-tables");
}
-
+
+ /**
+ * DOCUMENT ME!
+ *
+ * @return DOCUMENT ME!
+ */
@Override
public ITableFilterSimple getJpaTables() {
return new EclipselinkTables();
}
-
}