Class PersistenceXml
java.lang.Object
org.openxava.jpa.impl.PersistenceXml
To work with the persistence.xml to be used in this application.
- Since:
- 4.7
- Author:
- Javier Paniza
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<String> getClasses(String persistenceUnit) static StringgetPropetyValue(String persistenceUnit, String propertyName) static URLReturns the URL of the persistence.xml to be used in this application.
-
Constructor Details
-
PersistenceXml
public PersistenceXml()
-
-
Method Details
-
getResource
Returns the URL of the persistence.xml to be used in this application.- Throws:
IOException
-
getPropetyValue
public static String getPropetyValue(String persistenceUnit, String propertyName) throws ParserConfigurationException - Throws:
ParserConfigurationException- Since:
- 6.1.1
-
getClasses
public static Collection<String> getClasses(String persistenceUnit) throws ParserConfigurationException - Throws:
ParserConfigurationException- Since:
- 7.0
-