com.jwebmp.guicedpersistence.readers.eclipselink.EclipseLinkPropertiesReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guiced-persistence-eclipselink-reader Show documentation
Show all versions of guiced-persistence-eclipselink-reader Show documentation
Reads EclipseLink properties from a persistence.xml file for the Guice Persist framework
package com.jwebmp.guicedpersistence.readers.eclipselink;
import com.jwebmp.guicedpersistence.services.PropertiesEntityManagerReader;
import com.oracle.jaxb21.PersistenceUnit;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
public class EclipseLinkPropertiesReader
implements PropertiesEntityManagerReader
{
@Override
public Map processProperties(PersistenceUnit persistenceUnit, Properties incomingProperties)
{
Map output = new HashMap<>();
output.putIfAbsent("eclipselink.weaving", "static");
return output;
}
}