When bootstrapping OGM programmatically, it would be useful if there were public constants for specifying the datastore provider:
{code} Map<String, Object> props = new HashMap<String, Object>(); props.put( OgmProperties.DATASTORE_PROVIDER, MongoDB.PROVIDER_NAME ); Persistence.createEntityManagerFactory( "myPu", props ); {code}
Or even allow to pass in the dialect identifier type:
{code} Map<String, Object> props = new HashMap<String, Object>(); props .put( OgmProperties.DATASTORE_PROVIDER, MongoDB.class ); Persistence.createEntityManagerFactory( "myPu", props ); {code}
|