use of org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor in project jbosstools-hibernate by jbosstools.
the class JpaMappingFileHelper method findMappingFiles.
public static List<String> findMappingFiles(String persistenceUnitName) {
List<String> result = new ArrayList<String>();
List<ParsedPersistenceXmlDescriptor> persistenceUnits = PersistenceXmlParser.locatePersistenceUnits(new Properties());
for (ParsedPersistenceXmlDescriptor descriptor : persistenceUnits) {
if (descriptor.getName().equals(persistenceUnitName)) {
result.addAll(descriptor.getMappingFileNames());
}
}
return result;
}
Aggregations