org.jboss.ejb3.metadata.jpa.spec
Class PersistenceUnitMetaData
java.lang.Object
org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData
- All Implemented Interfaces:
- java.io.Serializable, org.jboss.metadata.javaee.support.MappableMetaData
public class PersistenceUnitMetaData
- extends java.lang.Object
- implements org.jboss.metadata.javaee.support.MappableMetaData, java.io.Serializable
A wrapper around Hibernate's PersistenceMetadata.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PersistenceUnitMetaData
public PersistenceUnitMetaData(PersistenceUnitsMetaData parent,
org.hibernate.ejb.packaging.PersistenceMetadata old)
getKey
public java.lang.String getKey()
- Specified by:
getKey in interface org.jboss.metadata.javaee.support.MappableMetaData
getLegacyMetadata
@Deprecated
public org.hibernate.ejb.packaging.PersistenceMetadata getLegacyMetadata()
- Deprecated.
- Return the legacy metadata. Do not use, it will be removed soon.
- Returns:
getName
public java.lang.String getName()
getPersistenceUnitRootUrl
public java.net.URL getPersistenceUnitRootUrl()
- Returns:
- The URL for the jar file or directory that is the
root of the persistence unit. (If the persistence unit is
rooted in the WEB-INF/classes directory, this will be the
URL of that directory.)
- See Also:
javax.persistence.PersistenceUnitInfo#getPersistenceUnitRootUrl
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object