persistence@glassfish.java.net

can map be null in createContainerEntityManagerFactory?

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Thu, 09 Feb 2006 19:25:39 +0530

Hi Mike,

In the latest spec, createContainerEntityManagerFactory takes a map
parameter? The javadoc does not state clearly what is the expected
behavior if *map is null*? Is it an allowable value or an NPE is thrown?

/**
* Called by the container when an EntityManagerFactory
* is to be created.
*
* @param info Metadata for use by the persistence provider
* @return EntityManagerFactory for the persistence unit
* specified by the metadata
* @param map A Map of integration-level properties for use
* by the persistence provider.
*/
public EntityManagerFactory createContainerEntityManagerFactory(
PersistenceUnitInfo info, Map map);

Thanks,
Sahoo