Mark Struberg – It looks like you committed an earlier version of Romain's patch, but I still have a couple issues with it (the latest version).
+ "javax.persistence.provider", PersistenceProviderImpl.class.getName(),
+ "openjpa.RuntimeUnenhancedClasses", "supported",
+ "openjpa.ConnectionURL", "jdbc:derby:memory:openjpa2018;create=true",
+ "openjpa.ConnectionDriverName", "org.apache.derby.jdbc.EmbeddedDriver");
+ em = emf.createEntityManager();
#1) RuntimeUnenhancedClasses is a feature we always tell users to stay away from. We should NEVER condone it's usage. It is buggy, and should have never made it into the codebase.
#2) Don't specify database connection details in the test setup method. These properties will be passed in at runtime via Maven, or if running in Eclipse, via SystemProperties.
#3) You shouldn't need to specify the persistence provider implementation class.