org.jboss.ejb3.metadata.jpa.spec
Class PersistenceUnitMetaData
java.lang.Object
org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData
- All Implemented Interfaces:
- Serializable, org.jboss.metadata.javaee.support.MappableMetaData
public class PersistenceUnitMetaData
- extends Object
- implements org.jboss.metadata.javaee.support.MappableMetaData, Serializable
A wrapper around Hibernate's PersistenceMetadata.
- Version:
- $Revision: 72001 $
- Author:
- Carlo de Wolf
- See Also:
- Serialized Form
PersistenceUnitMetaData
public PersistenceUnitMetaData(PersistenceUnitsMetaData parent,
org.hibernate.ejb.packaging.PersistenceMetadata old)
getKey
public 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 String getName()
getPersistenceUnitRootUrl
public 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 String toString()
- Overrides:
toString
in class Object
Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.