METAGEN-92 Renaming XmlParser to better reflect its function
This commit is contained in:
parent
5bdb352569
commit
fb132b281c
|
@ -45,7 +45,7 @@ import org.hibernate.jpamodelgen.model.MetaEntity;
|
|||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.jpamodelgen.util.StringUtil;
|
||||
import org.hibernate.jpamodelgen.util.TypeUtils;
|
||||
import org.hibernate.jpamodelgen.xml.XmlParser;
|
||||
import org.hibernate.jpamodelgen.xml.JpaDescriptorParser;
|
||||
|
||||
/**
|
||||
* Main annotation processor.
|
||||
|
@ -106,7 +106,7 @@ public class JPAMetaModelEntityProcessor extends AbstractProcessor {
|
|||
boolean fullyAnnotationConfigured = Boolean.parseBoolean( tmp );
|
||||
|
||||
if ( !fullyAnnotationConfigured ) {
|
||||
XmlParser parser = new XmlParser( context );
|
||||
JpaDescriptorParser parser = new JpaDescriptorParser( context );
|
||||
parser.parseXml();
|
||||
if ( context.isPersistenceUnitCompletelyXmlConfigured() ) {
|
||||
createMetaModelClasses();
|
||||
|
|
|
@ -51,7 +51,7 @@ import org.hibernate.jpamodelgen.xml.jaxb.PersistenceUnitMetadata;
|
|||
/**
|
||||
* @author Hardy Ferentschik
|
||||
*/
|
||||
public class XmlParser {
|
||||
public class JpaDescriptorParser {
|
||||
private static final String DEFAULT_ORM_XML_LOCATION = "/META-INF/orm.xml";
|
||||
private static final String SERIALIZATION_FILE_NAME = "Hibernate-Static-Metamodel-Generator.tmp";
|
||||
|
||||
|
@ -62,7 +62,7 @@ public class XmlParser {
|
|||
private final List<EntityMappings> entityMappings;
|
||||
private final XmlParserHelper xmlParserHelper;
|
||||
|
||||
public XmlParser(Context context) {
|
||||
public JpaDescriptorParser(Context context) {
|
||||
this.context = context;
|
||||
this.entityMappings = new ArrayList<EntityMappings>();
|
||||
this.xmlParserHelper = new XmlParserHelper( context );
|
Loading…
Reference in New Issue