com.jwebmp.guicedpersistence.readers.eclipselink.EclipseLinkIPropertiesReader 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.IPropertiesEntityManagerReader;
import com.oracle.jaxb21.PersistenceUnit;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
public class EclipseLinkIPropertiesReader
implements IPropertiesEntityManagerReader
{
@Override
public Map processProperties(PersistenceUnit persistenceUnit, Properties incomingProperties)
{
Map output = new HashMap<>();
output.putIfAbsent("eclipselink.weaving", "static");
return output;
}
}