persistence/play-java-jpa/src/main/java/play/db/jpa/DefaultJPAConfig.java
public static JPAConfig of(String name, String unitName) {
    return new DefaultJPAConfig(new JPAConfig.PersistenceUnit(name, unitName));
  }
public static JPAConfig of(String name, String unitName) {
    return new DefaultJPAConfig(new JPAConfig.PersistenceUnit(name, unitName));
  }
Create a default JPA configuration with the given name and unit name.

@param name the name for the entity manager factory
@param unitName the persistence unit name as used in `persistence.xml`
@return a default JPA configuration