NPersistence Reference Guide
Called by the container when an EntityManagerFactory is to be created.

Namespace: NPersistence.spi
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
EntityManagerFactory CreateContainerEntityManagerFactory(
	PersistenceUnitInfo info,
	Dictionary<Object, Object> map
)

Parameters

info
PersistenceUnitInfo
metadata for use by the persistence provider
map
Dictionary<(Of <(<'Object, Object>)>)>
a Map of integration-level properties for use by the persistence provider (may be null if no properties are specified). If a Bean Validation provider is present in the classpath, the container must pass the ValidatorFactory instance in the map with the key "NPersistence.validation.factory".

Return Value

EntityManagerFactory for the persistence unit specified by the metadata

See Also