HHH-17778 rename jpametamodelgen -> processor
This commit is contained in:
parent
7636d78feb
commit
4bc4ffe056
|
@ -438,7 +438,7 @@ checkstyle {
|
|||
// exclude generated java sources - by explicitly setting the base source dir
|
||||
tasks.checkstyleMain.source = 'src/main/java'
|
||||
tasks.checkstyleMain
|
||||
.exclude('org/hibernate/jpamodelgen/util/NullnessUtil.java')
|
||||
.exclude('org/hibernate/processor/util/NullnessUtil.java')
|
||||
.exclude('org/hibernate/internal/util/NullnessUtil.java')
|
||||
|
||||
// define a second checkstyle task for checking non-fatal violations
|
||||
|
@ -475,7 +475,7 @@ checkerFramework {
|
|||
extraJavacArgs = [
|
||||
'-AsuppressWarnings=initialization',
|
||||
// stubs is passed directly through options.compilerArgumentProviders
|
||||
'-AonlyDefs=^org\\.hibernate\\.(jdbc|exception|integrator|jpamodelgen|service|spi|pretty|property\\.access|stat|engine\\.(config|jndi|profile|spi|transaction)|(action|context|bytecode)\\.spi)\\.'
|
||||
'-AonlyDefs=^org\\.hibernate\\.(jdbc|exception|integrator|processor|service|spi|pretty|property\\.access|stat|engine\\.(config|jndi|profile|spi|transaction)|(action|context|bytecode)\\.spi)\\.'
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
@ -227,7 +227,7 @@ task generateEnversStaticMetamodel(
|
|||
options.compilerArgs = [
|
||||
"-proc:only",
|
||||
"-processor",
|
||||
"org.hibernate.jpamodelgen.HibernateProcessor"
|
||||
"org.hibernate.processor.HibernateProcessor"
|
||||
]
|
||||
|
||||
// put static metamodel classes back out to the source tree since they're version controlled.
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
*
|
||||
* @Dependent
|
||||
* @StaticMetamodel(BookRepository.class)
|
||||
* @Generated("org.hibernate.jpamodelgen.HibernateProcessor")
|
||||
* @Generated("org.hibernate.processor.HibernateProcessor")
|
||||
* public class BookRepository_ implements BookRepository {
|
||||
*
|
||||
*
|
||||
|
|
|
@ -170,7 +170,7 @@ task jaxb {
|
|||
|
||||
ant.xjc(
|
||||
destdir: ( xjcTargetDir as File ).absolutePath,
|
||||
package: 'org.hibernate.jpamodelgen.xml.jaxb',
|
||||
package: 'org.hibernate.processor.xml.jaxb',
|
||||
extension: 'true'
|
||||
) {
|
||||
project.ant.arg line: '-no-header'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.hibernate.jpamodelgen.test.data.data;
|
||||
package org.hibernate.processor.test.data;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
|
@ -1,4 +1,4 @@
|
|||
package org.hibernate.jpamodelgen.test.data.data;
|
||||
package org.hibernate.processor.test.data;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import org.hibernate.annotations.NaturalId;
|
|
@ -1,4 +1,4 @@
|
|||
package org.hibernate.jpamodelgen.test.data.data;
|
||||
package org.hibernate.processor.test.data;
|
||||
|
||||
import jakarta.data.Limit;
|
||||
import jakarta.data.Order;
|
|
@ -4,14 +4,14 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test.data.data;
|
||||
package org.hibernate.processor.test.data;
|
||||
|
||||
import org.hibernate.jpamodelgen.test.util.CompilationTest;
|
||||
import org.hibernate.jpamodelgen.test.util.WithClasses;
|
||||
import org.hibernate.processor.test.util.CompilationTest;
|
||||
import org.hibernate.processor.test.util.WithClasses;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hibernate.jpamodelgen.test.util.TestUtil.assertMetamodelClassGeneratedFor;
|
||||
import static org.hibernate.jpamodelgen.test.util.TestUtil.getMetaModelSourceAsString;
|
||||
import static org.hibernate.processor.test.util.TestUtil.assertMetamodelClassGeneratedFor;
|
||||
import static org.hibernate.processor.test.util.TestUtil.getMetaModelSourceAsString;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,10 +4,10 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen;
|
||||
package org.hibernate.processor;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
|
||||
import javax.annotation.processing.FilerException;
|
||||
import javax.lang.model.element.ElementKind;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen;
|
||||
package org.hibernate.processor;
|
||||
|
||||
import javax.lang.model.element.Element;
|
||||
import javax.lang.model.element.ElementKind;
|
||||
|
@ -14,10 +14,10 @@ import javax.lang.model.type.ExecutableType;
|
|||
import javax.lang.model.type.TypeMirror;
|
||||
import javax.lang.model.util.SimpleTypeVisitor8;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.Constants.COLLECTIONS;
|
||||
import static org.hibernate.jpamodelgen.util.StringUtil.isProperty;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getCollectionElementType;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.toTypeString;
|
||||
import static org.hibernate.processor.util.Constants.COLLECTIONS;
|
||||
import static org.hibernate.processor.util.StringUtil.isProperty;
|
||||
import static org.hibernate.processor.util.TypeUtils.getCollectionElementType;
|
||||
import static org.hibernate.processor.util.TypeUtils.toTypeString;
|
||||
|
||||
class ContainsAttributeTypeVisitor extends SimpleTypeVisitor8<Boolean, Element> {
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen;
|
||||
package org.hibernate.processor;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
@ -22,9 +22,9 @@ import javax.lang.model.util.Elements;
|
|||
import javax.lang.model.util.Types;
|
||||
import javax.tools.Diagnostic;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.jpamodelgen.util.AccessType;
|
||||
import org.hibernate.jpamodelgen.util.AccessTypeInformation;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
import org.hibernate.processor.util.AccessType;
|
||||
import org.hibernate.processor.util.AccessTypeInformation;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
|
@ -4,13 +4,13 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen;
|
||||
package org.hibernate.processor;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.jpamodelgen.annotation.AnnotationMetaEntity;
|
||||
import org.hibernate.jpamodelgen.annotation.AnnotationMetaPackage;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.jpamodelgen.xml.JpaDescriptorParser;
|
||||
import org.hibernate.processor.annotation.AnnotationMetaEntity;
|
||||
import org.hibernate.processor.annotation.AnnotationMetaPackage;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
import org.hibernate.processor.xml.JpaDescriptorParser;
|
||||
|
||||
import javax.annotation.processing.AbstractProcessor;
|
||||
import javax.annotation.processing.ProcessingEnvironment;
|
||||
|
@ -35,21 +35,21 @@ import java.util.Set;
|
|||
import static java.lang.Boolean.parseBoolean;
|
||||
import static javax.lang.model.util.ElementFilter.fieldsIn;
|
||||
import static javax.lang.model.util.ElementFilter.methodsIn;
|
||||
import static org.hibernate.jpamodelgen.HibernateProcessor.ADD_GENERATED_ANNOTATION;
|
||||
import static org.hibernate.jpamodelgen.HibernateProcessor.ADD_GENERATION_DATE;
|
||||
import static org.hibernate.jpamodelgen.HibernateProcessor.ADD_SUPPRESS_WARNINGS_ANNOTATION;
|
||||
import static org.hibernate.jpamodelgen.HibernateProcessor.DEBUG_OPTION;
|
||||
import static org.hibernate.jpamodelgen.HibernateProcessor.FULLY_ANNOTATION_CONFIGURED_OPTION;
|
||||
import static org.hibernate.jpamodelgen.HibernateProcessor.LAZY_XML_PARSING;
|
||||
import static org.hibernate.jpamodelgen.HibernateProcessor.ORM_XML_OPTION;
|
||||
import static org.hibernate.jpamodelgen.HibernateProcessor.PERSISTENCE_XML_OPTION;
|
||||
import static org.hibernate.jpamodelgen.HibernateProcessor.SUPPRESS_JAKARTA_DATA_METAMODEL;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.*;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.containsAnnotation;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getAnnotationMirror;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getAnnotationValue;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.hasAnnotation;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.isClassOrRecordType;
|
||||
import static org.hibernate.processor.HibernateProcessor.ADD_GENERATED_ANNOTATION;
|
||||
import static org.hibernate.processor.HibernateProcessor.ADD_GENERATION_DATE;
|
||||
import static org.hibernate.processor.HibernateProcessor.ADD_SUPPRESS_WARNINGS_ANNOTATION;
|
||||
import static org.hibernate.processor.HibernateProcessor.DEBUG_OPTION;
|
||||
import static org.hibernate.processor.HibernateProcessor.FULLY_ANNOTATION_CONFIGURED_OPTION;
|
||||
import static org.hibernate.processor.HibernateProcessor.LAZY_XML_PARSING;
|
||||
import static org.hibernate.processor.HibernateProcessor.ORM_XML_OPTION;
|
||||
import static org.hibernate.processor.HibernateProcessor.PERSISTENCE_XML_OPTION;
|
||||
import static org.hibernate.processor.HibernateProcessor.SUPPRESS_JAKARTA_DATA_METAMODEL;
|
||||
import static org.hibernate.processor.util.Constants.*;
|
||||
import static org.hibernate.processor.util.TypeUtils.containsAnnotation;
|
||||
import static org.hibernate.processor.util.TypeUtils.getAnnotationMirror;
|
||||
import static org.hibernate.processor.util.TypeUtils.getAnnotationValue;
|
||||
import static org.hibernate.processor.util.TypeUtils.hasAnnotation;
|
||||
import static org.hibernate.processor.util.TypeUtils.isClassOrRecordType;
|
||||
|
||||
/**
|
||||
* Main annotation processor.
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen;
|
||||
package org.hibernate.processor;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
@ -13,7 +13,7 @@ import java.util.Set;
|
|||
import java.util.StringTokenizer;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.ImportContext;
|
||||
import org.hibernate.processor.model.ImportContext;
|
||||
|
||||
import static java.lang.Character.isWhitespace;
|
||||
import static java.lang.System.lineSeparator;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen;
|
||||
package org.hibernate.processor;
|
||||
|
||||
/**
|
||||
* {@code RuntimeException} used for errors during meta model generation.
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen;
|
||||
package org.hibernate.processor;
|
||||
|
||||
public class ProcessLaterException extends RuntimeException {
|
||||
}
|
|
@ -4,9 +4,9 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen;
|
||||
package org.hibernate.processor;
|
||||
|
||||
import org.hibernate.jpamodelgen.util.NullnessUtil;
|
||||
import org.hibernate.processor.util.NullnessUtil;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
|
@ -4,16 +4,16 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.hibernate.internal.util.StringHelper;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.Constants.HIB_SESSION;
|
||||
import static org.hibernate.jpamodelgen.util.StringUtil.getUpperUnderscoreCaseFromLowerCamelCase;
|
||||
import static org.hibernate.processor.util.Constants.HIB_SESSION;
|
||||
import static org.hibernate.processor.util.StringUtil.getUpperUnderscoreCaseFromLowerCamelCase;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,19 +4,19 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.AssertionFailure;
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static java.util.stream.Collectors.toList;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.*;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.isPrimitive;
|
||||
import static org.hibernate.processor.util.Constants.*;
|
||||
import static org.hibernate.processor.util.TypeUtils.isPrimitive;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,17 +4,17 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.antlr.v4.runtime.RecognitionException;
|
||||
import org.antlr.v4.runtime.Recognizer;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.jpamodelgen.validation.ProcessorSessionFactory;
|
||||
import org.hibernate.jpamodelgen.validation.Validation;
|
||||
import org.hibernate.processor.Context;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
import org.hibernate.processor.validation.ProcessorSessionFactory;
|
||||
import org.hibernate.processor.validation.Validation;
|
||||
import org.hibernate.query.sqm.tree.SqmStatement;
|
||||
import org.hibernate.query.sqm.tree.select.SqmSelectStatement;
|
||||
|
||||
|
@ -23,10 +23,10 @@ import javax.lang.model.element.AnnotationValue;
|
|||
import javax.lang.model.element.Element;
|
||||
import java.util.List;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.containsAnnotation;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getAnnotationMirror;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getAnnotationValue;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getAnnotationValueRef;
|
||||
import static org.hibernate.processor.util.TypeUtils.containsAnnotation;
|
||||
import static org.hibernate.processor.util.TypeUtils.getAnnotationMirror;
|
||||
import static org.hibernate.processor.util.TypeUtils.getAnnotationValue;
|
||||
import static org.hibernate.processor.util.TypeUtils.getAnnotationValueRef;
|
||||
|
||||
public abstract class AnnotationMeta implements Metamodel {
|
||||
|
|
@ -4,15 +4,15 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
|
||||
import javax.lang.model.element.Element;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.StringUtil.getUpperUnderscoreCaseFromLowerCamelCase;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.propertyName;
|
||||
import static org.hibernate.processor.util.StringUtil.getUpperUnderscoreCaseFromLowerCamelCase;
|
||||
import static org.hibernate.processor.util.TypeUtils.propertyName;
|
||||
|
||||
/**
|
||||
* Captures all information about an annotated persistent attribute.
|
|
@ -4,11 +4,11 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import javax.lang.model.element.Element;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.MetaCollection;
|
||||
import org.hibernate.processor.model.MetaCollection;
|
||||
|
||||
/**
|
||||
* @author Max Andersen
|
|
@ -4,21 +4,21 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.AssertionFailure;
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.jpamodelgen.ImportContextImpl;
|
||||
import org.hibernate.jpamodelgen.ProcessLaterException;
|
||||
import org.hibernate.jpamodelgen.model.ImportContext;
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.jpamodelgen.util.AccessType;
|
||||
import org.hibernate.jpamodelgen.util.AccessTypeInformation;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.jpamodelgen.validation.ProcessorSessionFactory;
|
||||
import org.hibernate.jpamodelgen.validation.Validation;
|
||||
import org.hibernate.processor.Context;
|
||||
import org.hibernate.processor.ImportContextImpl;
|
||||
import org.hibernate.processor.ProcessLaterException;
|
||||
import org.hibernate.processor.model.ImportContext;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
import org.hibernate.processor.util.AccessType;
|
||||
import org.hibernate.processor.util.AccessTypeInformation;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
import org.hibernate.processor.validation.ProcessorSessionFactory;
|
||||
import org.hibernate.processor.validation.Validation;
|
||||
import org.hibernate.metamodel.model.domain.EntityDomainType;
|
||||
import org.hibernate.query.criteria.JpaEntityJoin;
|
||||
import org.hibernate.query.criteria.JpaRoot;
|
||||
|
@ -65,21 +65,21 @@ import static java.util.stream.Collectors.toList;
|
|||
import static javax.lang.model.util.ElementFilter.fieldsIn;
|
||||
import static javax.lang.model.util.ElementFilter.methodsIn;
|
||||
import static org.hibernate.internal.util.StringHelper.qualify;
|
||||
import static org.hibernate.jpamodelgen.annotation.AbstractQueryMethod.isSessionParameter;
|
||||
import static org.hibernate.jpamodelgen.annotation.AbstractQueryMethod.isSpecialParam;
|
||||
import static org.hibernate.jpamodelgen.annotation.QueryMethod.isOrderParam;
|
||||
import static org.hibernate.jpamodelgen.annotation.QueryMethod.isPageParam;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.*;
|
||||
import static org.hibernate.jpamodelgen.util.NullnessUtil.castNonNull;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.containsAnnotation;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.determineAccessTypeForHierarchy;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.determineAnnotationSpecifiedAccessType;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.findMappedSuperClass;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getAnnotationMirror;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getAnnotationValue;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getAnnotationValueRef;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.hasAnnotation;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.primitiveClassMatchesKind;
|
||||
import static org.hibernate.processor.annotation.AbstractQueryMethod.isSessionParameter;
|
||||
import static org.hibernate.processor.annotation.AbstractQueryMethod.isSpecialParam;
|
||||
import static org.hibernate.processor.annotation.QueryMethod.isOrderParam;
|
||||
import static org.hibernate.processor.annotation.QueryMethod.isPageParam;
|
||||
import static org.hibernate.processor.util.Constants.*;
|
||||
import static org.hibernate.processor.util.NullnessUtil.castNonNull;
|
||||
import static org.hibernate.processor.util.TypeUtils.containsAnnotation;
|
||||
import static org.hibernate.processor.util.TypeUtils.determineAccessTypeForHierarchy;
|
||||
import static org.hibernate.processor.util.TypeUtils.determineAnnotationSpecifiedAccessType;
|
||||
import static org.hibernate.processor.util.TypeUtils.findMappedSuperClass;
|
||||
import static org.hibernate.processor.util.TypeUtils.getAnnotationMirror;
|
||||
import static org.hibernate.processor.util.TypeUtils.getAnnotationValue;
|
||||
import static org.hibernate.processor.util.TypeUtils.getAnnotationValueRef;
|
||||
import static org.hibernate.processor.util.TypeUtils.hasAnnotation;
|
||||
import static org.hibernate.processor.util.TypeUtils.primitiveClassMatchesKind;
|
||||
|
||||
/**
|
||||
* Class used to collect meta information about an annotated type (entity, embeddable or mapped superclass).
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import javax.lang.model.element.Element;
|
||||
|
|
@ -4,13 +4,13 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.jpamodelgen.ImportContextImpl;
|
||||
import org.hibernate.jpamodelgen.model.ImportContext;
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.processor.Context;
|
||||
import org.hibernate.processor.ImportContextImpl;
|
||||
import org.hibernate.processor.model.ImportContext;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
|
||||
import javax.lang.model.element.PackageElement;
|
||||
import javax.tools.Diagnostic;
|
|
@ -4,12 +4,12 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import javax.lang.model.element.Element;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.MetaSingleAttribute;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.processor.model.MetaSingleAttribute;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
|
||||
/**
|
||||
* @author Max Andersen
|
|
@ -4,14 +4,14 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
import org.hibernate.metamodel.model.domain.ManagedDomainType;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.hasAnnotation;
|
||||
import static org.hibernate.processor.util.TypeUtils.hasAnnotation;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,16 +4,16 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.Constants.LIST;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.isPrimitive;
|
||||
import static org.hibernate.processor.util.Constants.LIST;
|
||||
import static org.hibernate.processor.util.TypeUtils.isPrimitive;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,14 +4,14 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
|
||||
import javax.lang.model.element.Element;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.propertyName;
|
||||
import static org.hibernate.processor.util.TypeUtils.propertyName;
|
||||
|
||||
/**
|
||||
* Captures all information about an annotated persistent attribute.
|
|
@ -4,12 +4,12 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.jpamodelgen.util.TypeUtils;
|
||||
import org.hibernate.processor.Context;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
import org.hibernate.processor.util.TypeUtils;
|
||||
|
||||
import javax.lang.model.element.Element;
|
||||
import javax.lang.model.element.TypeElement;
|
||||
|
@ -21,10 +21,10 @@ import javax.lang.model.type.TypeVariable;
|
|||
import javax.lang.model.util.SimpleTypeVisitor8;
|
||||
import javax.lang.model.util.Types;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getTargetEntity;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.isBasicAttribute;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.toArrayTypeString;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.toTypeString;
|
||||
import static org.hibernate.processor.util.TypeUtils.getTargetEntity;
|
||||
import static org.hibernate.processor.util.TypeUtils.isBasicAttribute;
|
||||
import static org.hibernate.processor.util.TypeUtils.toArrayTypeString;
|
||||
import static org.hibernate.processor.util.TypeUtils.toTypeString;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,15 +4,15 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.Constants.ENTITY_MANAGER_FACTORY;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.HIB_SESSION_FACTORY;
|
||||
import static org.hibernate.processor.util.Constants.ENTITY_MANAGER_FACTORY;
|
||||
import static org.hibernate.processor.util.Constants.HIB_SESSION_FACTORY;
|
||||
|
||||
/**
|
||||
* Used by the container to instantiate a Jakarta Data repository.
|
|
@ -4,15 +4,15 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.antlr.v4.runtime.Parser;
|
||||
import org.antlr.v4.runtime.RecognitionException;
|
||||
import org.antlr.v4.runtime.Recognizer;
|
||||
import org.antlr.v4.runtime.atn.ATNConfigSet;
|
||||
import org.antlr.v4.runtime.dfa.DFA;
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.jpamodelgen.validation.Validation;
|
||||
import org.hibernate.processor.Context;
|
||||
import org.hibernate.processor.validation.Validation;
|
||||
|
||||
import javax.lang.model.element.AnnotationMirror;
|
||||
import javax.lang.model.element.AnnotationValue;
|
|
@ -4,12 +4,12 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static java.util.Collections.emptyList;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.isPrimitive;
|
||||
import static org.hibernate.processor.util.TypeUtils.isPrimitive;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,10 +4,10 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
|
||||
public class LifecycleMethod implements MetaAttribute {
|
||||
private final AnnotationMetaEntity annotationMetaEntity;
|
|
@ -4,14 +4,14 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.jpamodelgen.util.AccessType;
|
||||
import org.hibernate.jpamodelgen.util.AccessTypeInformation;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.jpamodelgen.util.TypeUtils;
|
||||
import org.hibernate.processor.Context;
|
||||
import org.hibernate.processor.util.AccessType;
|
||||
import org.hibernate.processor.util.AccessTypeInformation;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
import org.hibernate.processor.util.TypeUtils;
|
||||
|
||||
import javax.lang.model.element.AnnotationMirror;
|
||||
import javax.lang.model.element.Element;
|
||||
|
@ -28,23 +28,23 @@ import javax.lang.model.util.Types;
|
|||
import javax.tools.Diagnostic;
|
||||
import java.util.List;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.Constants.ELEMENT_COLLECTION;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.MANY_TO_ANY;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.MANY_TO_MANY;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.ONE_TO_MANY;
|
||||
import static org.hibernate.jpamodelgen.util.NullnessUtil.castNonNull;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.DEFAULT_ANNOTATION_PARAMETER_NAME;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.determineAnnotationSpecifiedAccessType;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.extractClosestRealTypeAsString;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getAnnotationMirror;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getAnnotationValue;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getCollectionElementType;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getKeyType;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.hasAnnotation;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.isBasicAttribute;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.isPropertyGetter;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.toArrayTypeString;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.toTypeString;
|
||||
import static org.hibernate.processor.util.Constants.ELEMENT_COLLECTION;
|
||||
import static org.hibernate.processor.util.Constants.MANY_TO_ANY;
|
||||
import static org.hibernate.processor.util.Constants.MANY_TO_MANY;
|
||||
import static org.hibernate.processor.util.Constants.ONE_TO_MANY;
|
||||
import static org.hibernate.processor.util.NullnessUtil.castNonNull;
|
||||
import static org.hibernate.processor.util.TypeUtils.DEFAULT_ANNOTATION_PARAMETER_NAME;
|
||||
import static org.hibernate.processor.util.TypeUtils.determineAnnotationSpecifiedAccessType;
|
||||
import static org.hibernate.processor.util.TypeUtils.extractClosestRealTypeAsString;
|
||||
import static org.hibernate.processor.util.TypeUtils.getAnnotationMirror;
|
||||
import static org.hibernate.processor.util.TypeUtils.getAnnotationValue;
|
||||
import static org.hibernate.processor.util.TypeUtils.getCollectionElementType;
|
||||
import static org.hibernate.processor.util.TypeUtils.getKeyType;
|
||||
import static org.hibernate.processor.util.TypeUtils.hasAnnotation;
|
||||
import static org.hibernate.processor.util.TypeUtils.isBasicAttribute;
|
||||
import static org.hibernate.processor.util.TypeUtils.isPropertyGetter;
|
||||
import static org.hibernate.processor.util.TypeUtils.toArrayTypeString;
|
||||
import static org.hibernate.processor.util.TypeUtils.toTypeString;
|
||||
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
|
@ -4,12 +4,12 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.StringUtil.nameToFieldName;
|
||||
import static org.hibernate.processor.util.StringUtil.nameToFieldName;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,12 +4,12 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
import org.hibernate.query.sqm.SqmExpressible;
|
||||
import org.hibernate.query.sqm.tree.expression.SqmParameter;
|
||||
import org.hibernate.query.sqm.tree.select.SqmSelectStatement;
|
||||
|
@ -21,8 +21,8 @@ import javax.lang.model.element.TypeElement;
|
|||
import java.util.List;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.StringUtil.nameToFieldName;
|
||||
import static org.hibernate.jpamodelgen.validation.ProcessorSessionFactory.findEntityByUnqualifiedName;
|
||||
import static org.hibernate.processor.util.StringUtil.nameToFieldName;
|
||||
import static org.hibernate.processor.validation.ProcessorSessionFactory.findEntityByUnqualifiedName;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
class OrderBy {
|
||||
String fieldName;
|
|
@ -4,16 +4,16 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.internal.util.StringHelper;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.Constants.LIST;
|
||||
import static org.hibernate.jpamodelgen.util.StringUtil.getUpperUnderscoreCaseFromLowerCamelCase;
|
||||
import static org.hibernate.processor.util.Constants.LIST;
|
||||
import static org.hibernate.processor.util.StringUtil.getUpperUnderscoreCaseFromLowerCamelCase;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,12 +4,12 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
|
||||
/**
|
||||
* A general purpose constructor which accepts the session.
|
|
@ -7,4 +7,4 @@
|
|||
/**
|
||||
* Implementation of the model classes backed by annotations.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.annotation;
|
||||
package org.hibernate.processor.annotation;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.model;
|
||||
package org.hibernate.processor.model;
|
||||
|
||||
/**
|
||||
* @author Max Andersen
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.model;
|
||||
package org.hibernate.processor.model;
|
||||
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.model;
|
||||
package org.hibernate.processor.model;
|
||||
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.model;
|
||||
package org.hibernate.processor.model;
|
||||
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
|
@ -4,10 +4,10 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.model;
|
||||
package org.hibernate.processor.model;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.processor.Context;
|
||||
|
||||
import java.util.List;
|
||||
import javax.lang.model.element.Element;
|
|
@ -4,4 +4,4 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.model;
|
||||
package org.hibernate.processor.model;
|
|
@ -6,6 +6,6 @@
|
|||
*/
|
||||
/**
|
||||
* The main package of this annotation processor.
|
||||
* The actual processor class is {@link org.hibernate.jpamodelgen.HibernateProcessor}.
|
||||
* The actual processor class is {@link org.hibernate.processor.HibernateProcessor}.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen;
|
||||
package org.hibernate.processor;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util;
|
||||
package org.hibernate.processor.util;
|
||||
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util;
|
||||
package org.hibernate.processor.util;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
|
@ -4,10 +4,10 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util;
|
||||
package org.hibernate.processor.util;
|
||||
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.processor.Context;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
|
||||
import javax.lang.model.element.Element;
|
||||
import javax.lang.model.element.ElementKind;
|
||||
|
@ -19,10 +19,10 @@ import javax.lang.model.type.TypeMirror;
|
|||
import javax.lang.model.util.SimpleTypeVisitor8;
|
||||
import java.io.Serializable;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.Constants.BASIC_ARRAY_TYPES;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.BASIC_TYPES;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.hasAnnotation;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.isClassOrRecordType;
|
||||
import static org.hibernate.processor.util.Constants.BASIC_ARRAY_TYPES;
|
||||
import static org.hibernate.processor.util.Constants.BASIC_TYPES;
|
||||
import static org.hibernate.processor.util.TypeUtils.hasAnnotation;
|
||||
import static org.hibernate.processor.util.TypeUtils.isClassOrRecordType;
|
||||
|
||||
/**
|
||||
* Checks whether the visited type is a basic attribute according to the JPA 2 spec
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util;
|
||||
package org.hibernate.processor.util;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util;
|
||||
package org.hibernate.processor.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
|
@ -22,7 +22,7 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util;
|
||||
package org.hibernate.processor.util;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.EnsuresNonNull;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util;
|
||||
package org.hibernate.processor.util;
|
||||
|
||||
import java.util.Locale;
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util;
|
||||
package org.hibernate.processor.util;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
@ -28,7 +28,7 @@ import javax.lang.model.util.SimpleTypeVisitor8;
|
|||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.Constants.JAVA_OBJECT;
|
||||
import static org.hibernate.processor.util.Constants.JAVA_OBJECT;
|
||||
|
||||
/**
|
||||
* @author Christian Beikov
|
|
@ -4,13 +4,13 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util;
|
||||
package org.hibernate.processor.util;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.jpamodelgen.MetaModelGenerationException;
|
||||
import org.hibernate.jpamodelgen.annotation.AnnotationMetaEntity;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.processor.Context;
|
||||
import org.hibernate.processor.MetaModelGenerationException;
|
||||
import org.hibernate.processor.annotation.AnnotationMetaEntity;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
|
||||
import javax.lang.model.element.AnnotationMirror;
|
||||
import javax.lang.model.element.AnnotationValue;
|
||||
|
@ -39,22 +39,22 @@ import java.util.Set;
|
|||
import java.util.function.Function;
|
||||
|
||||
import static java.beans.Introspector.decapitalize;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.ACCESS;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.BASIC;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.ELEMENT_COLLECTION;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.EMBEDDABLE;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.EMBEDDED_ID;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.ENTITY;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.ID;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.JAVA_OBJECT;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.MANY_TO_MANY;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.MANY_TO_ONE;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.MAP;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.MAPPED_SUPERCLASS;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.ONE_TO_MANY;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.ONE_TO_ONE;
|
||||
import static org.hibernate.jpamodelgen.util.NullnessUtil.castNonNull;
|
||||
import static org.hibernate.jpamodelgen.util.StringUtil.isProperty;
|
||||
import static org.hibernate.processor.util.Constants.ACCESS;
|
||||
import static org.hibernate.processor.util.Constants.BASIC;
|
||||
import static org.hibernate.processor.util.Constants.ELEMENT_COLLECTION;
|
||||
import static org.hibernate.processor.util.Constants.EMBEDDABLE;
|
||||
import static org.hibernate.processor.util.Constants.EMBEDDED_ID;
|
||||
import static org.hibernate.processor.util.Constants.ENTITY;
|
||||
import static org.hibernate.processor.util.Constants.ID;
|
||||
import static org.hibernate.processor.util.Constants.JAVA_OBJECT;
|
||||
import static org.hibernate.processor.util.Constants.MANY_TO_MANY;
|
||||
import static org.hibernate.processor.util.Constants.MANY_TO_ONE;
|
||||
import static org.hibernate.processor.util.Constants.MAP;
|
||||
import static org.hibernate.processor.util.Constants.MAPPED_SUPERCLASS;
|
||||
import static org.hibernate.processor.util.Constants.ONE_TO_MANY;
|
||||
import static org.hibernate.processor.util.Constants.ONE_TO_ONE;
|
||||
import static org.hibernate.processor.util.NullnessUtil.castNonNull;
|
||||
import static org.hibernate.processor.util.StringUtil.isProperty;
|
||||
|
||||
/**
|
||||
* Utility class.
|
|
@ -7,4 +7,4 @@
|
|||
/**
|
||||
* Helper classes for string and type processing as well as access type detection.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util;
|
||||
package org.hibernate.processor.util;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util.xml;
|
||||
package org.hibernate.processor.util.xml;
|
||||
|
||||
import jakarta.xml.bind.ValidationEvent;
|
||||
import jakarta.xml.bind.ValidationEventHandler;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util.xml;
|
||||
package org.hibernate.processor.util.xml;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util.xml;
|
||||
package org.hibernate.processor.util.xml;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
@ -22,9 +22,9 @@ import javax.xml.stream.XMLStreamException;
|
|||
import javax.xml.validation.Schema;
|
||||
import javax.xml.validation.SchemaFactory;
|
||||
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.jpamodelgen.util.NullnessUtil;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.ObjectFactory;
|
||||
import org.hibernate.processor.Context;
|
||||
import org.hibernate.processor.util.NullnessUtil;
|
||||
import org.hibernate.processor.xml.jaxb.ObjectFactory;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.xml.sax.SAXException;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util.xml;
|
||||
package org.hibernate.processor.util.xml;
|
||||
|
||||
/**
|
||||
* Custom exception for all sorts of XML parsing related exceptions.
|
|
@ -7,4 +7,4 @@
|
|||
/**
|
||||
* XML helper classes. Used for parsing persistence.xml and orm.xml.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.util.xml;
|
||||
package org.hibernate.processor.util.xml;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.validation;
|
||||
package org.hibernate.processor.validation;
|
||||
|
||||
import org.hibernate.FetchMode;
|
||||
import org.hibernate.QueryException;
|
||||
|
@ -17,7 +17,7 @@ import org.hibernate.type.MapType;
|
|||
import org.hibernate.type.Type;
|
||||
|
||||
import static org.hibernate.internal.util.StringHelper.root;
|
||||
import static org.hibernate.jpamodelgen.validation.MockSessionFactory.typeConfiguration;
|
||||
import static org.hibernate.processor.validation.MockSessionFactory.typeConfiguration;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.validation;
|
||||
package org.hibernate.processor.validation;
|
||||
|
||||
import jakarta.persistence.AccessType;
|
||||
import org.hibernate.QueryException;
|
||||
|
@ -24,7 +24,7 @@ import java.util.Map;
|
|||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
|
||||
import static org.hibernate.jpamodelgen.validation.MockSessionFactory.typeConfiguration;
|
||||
import static org.hibernate.processor.validation.MockSessionFactory.typeConfiguration;
|
||||
|
||||
/**
|
||||
* @author Gavin King
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.validation;
|
||||
package org.hibernate.processor.validation;
|
||||
|
||||
import org.hibernate.annotations.processing.GenericDialect;
|
||||
import org.hibernate.boot.model.naming.Identifier;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.validation;
|
||||
package org.hibernate.processor.validation;
|
||||
|
||||
import org.hibernate.CustomEntityDirtinessStrategy;
|
||||
import org.hibernate.EntityNameResolver;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.validation;
|
||||
package org.hibernate.processor.validation;
|
||||
|
||||
import net.bytebuddy.ByteBuddy;
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.validation;
|
||||
package org.hibernate.processor.validation;
|
||||
|
||||
import jakarta.persistence.AccessType;
|
||||
import org.hibernate.PropertyNotFoundException;
|
||||
|
@ -51,7 +51,7 @@ import static org.hibernate.internal.util.StringHelper.qualify;
|
|||
import static org.hibernate.internal.util.StringHelper.root;
|
||||
import static org.hibernate.internal.util.StringHelper.split;
|
||||
import static org.hibernate.internal.util.StringHelper.unroot;
|
||||
import static org.hibernate.jpamodelgen.util.Constants.JAVA_OBJECT;
|
||||
import static org.hibernate.processor.util.Constants.JAVA_OBJECT;
|
||||
|
||||
/**
|
||||
* Implementation of the {@code Mock} objects based on standard
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.validation;
|
||||
package org.hibernate.processor.validation;
|
||||
|
||||
import org.antlr.v4.runtime.ANTLRErrorListener;
|
||||
import org.antlr.v4.runtime.BailErrorStrategy;
|
||||
|
@ -31,8 +31,8 @@ import javax.lang.model.type.DeclaredType;
|
|||
import javax.lang.model.type.TypeKind;
|
||||
import javax.lang.model.type.TypeMirror;
|
||||
|
||||
import static org.hibernate.jpamodelgen.validation.ProcessorSessionFactory.getEntityName;
|
||||
import static org.hibernate.jpamodelgen.validation.ProcessorSessionFactory.isEntity;
|
||||
import static org.hibernate.processor.validation.ProcessorSessionFactory.getEntityName;
|
||||
import static org.hibernate.processor.validation.ProcessorSessionFactory.isEntity;
|
||||
|
||||
|
||||
/**
|
|
@ -7,6 +7,6 @@
|
|||
/**
|
||||
* Validation for HQL queries.
|
||||
*
|
||||
* @see org.hibernate.jpamodelgen.validation.Validation#validate
|
||||
* @see org.hibernate.processor.validation.Validation#validate
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.validation;
|
||||
package org.hibernate.processor.validation;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.xml;
|
||||
package org.hibernate.processor.xml;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
|
@ -24,19 +24,19 @@ import javax.lang.model.util.Elements;
|
|||
import javax.tools.Diagnostic;
|
||||
import javax.xml.validation.Schema;
|
||||
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.jpamodelgen.util.AccessType;
|
||||
import org.hibernate.jpamodelgen.util.AccessTypeInformation;
|
||||
import org.hibernate.jpamodelgen.util.FileTimeStampChecker;
|
||||
import org.hibernate.jpamodelgen.util.StringUtil;
|
||||
import org.hibernate.jpamodelgen.util.TypeUtils;
|
||||
import org.hibernate.jpamodelgen.util.xml.XmlParserHelper;
|
||||
import org.hibernate.jpamodelgen.util.xml.XmlParsingException;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.Entity;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.EntityMappings;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.Persistence;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.PersistenceUnitDefaults;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.PersistenceUnitMetadata;
|
||||
import org.hibernate.processor.Context;
|
||||
import org.hibernate.processor.util.AccessType;
|
||||
import org.hibernate.processor.util.AccessTypeInformation;
|
||||
import org.hibernate.processor.util.FileTimeStampChecker;
|
||||
import org.hibernate.processor.util.StringUtil;
|
||||
import org.hibernate.processor.util.TypeUtils;
|
||||
import org.hibernate.processor.util.xml.XmlParserHelper;
|
||||
import org.hibernate.processor.util.xml.XmlParsingException;
|
||||
import org.hibernate.processor.xml.jaxb.Entity;
|
||||
import org.hibernate.processor.xml.jaxb.EntityMappings;
|
||||
import org.hibernate.processor.xml.jaxb.Persistence;
|
||||
import org.hibernate.processor.xml.jaxb.PersistenceUnitDefaults;
|
||||
import org.hibernate.processor.xml.jaxb.PersistenceUnitMetadata;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
|
@ -262,9 +262,9 @@ public class JpaDescriptorParser {
|
|||
}
|
||||
|
||||
private void parseEmbeddable(
|
||||
Collection<org.hibernate.jpamodelgen.xml.jaxb.Embeddable> embeddables,
|
||||
Collection<org.hibernate.processor.xml.jaxb.Embeddable> embeddables,
|
||||
String defaultPackageName) {
|
||||
for ( org.hibernate.jpamodelgen.xml.jaxb.Embeddable embeddable : embeddables ) {
|
||||
for ( org.hibernate.processor.xml.jaxb.Embeddable embeddable : embeddables ) {
|
||||
String fqcn = StringUtil.determineFullyQualifiedClassName( defaultPackageName, embeddable.getClazz() );
|
||||
// we have to extract the package name from the fqcn. Maybe the entity was setting a fqcn directly
|
||||
String pkg = StringUtil.packageNameFromFqcn( fqcn );
|
||||
|
@ -289,9 +289,9 @@ public class JpaDescriptorParser {
|
|||
}
|
||||
|
||||
private void parseMappedSuperClass(
|
||||
Collection<org.hibernate.jpamodelgen.xml.jaxb.MappedSuperclass> mappedSuperClasses,
|
||||
Collection<org.hibernate.processor.xml.jaxb.MappedSuperclass> mappedSuperClasses,
|
||||
String defaultPackageName) {
|
||||
for ( org.hibernate.jpamodelgen.xml.jaxb.MappedSuperclass mappedSuperClass : mappedSuperClasses ) {
|
||||
for ( org.hibernate.processor.xml.jaxb.MappedSuperclass mappedSuperClass : mappedSuperClasses ) {
|
||||
String fqcn = StringUtil.determineFullyQualifiedClassName(
|
||||
defaultPackageName, mappedSuperClass.getClazz()
|
||||
);
|
||||
|
@ -332,7 +332,7 @@ public class JpaDescriptorParser {
|
|||
|
||||
private AccessType determineEntityAccessType(EntityMappings mappings) {
|
||||
AccessType accessType = context.getPersistenceUnitDefaultAccessType();
|
||||
final org.hibernate.jpamodelgen.xml.jaxb.AccessType mappingsAccess = mappings.getAccess();
|
||||
final org.hibernate.processor.xml.jaxb.AccessType mappingsAccess = mappings.getAccess();
|
||||
if ( mappingsAccess != null ) {
|
||||
accessType = mapXmlAccessTypeToJpaAccessType( mappingsAccess );
|
||||
}
|
||||
|
@ -349,7 +349,7 @@ public class JpaDescriptorParser {
|
|||
String name = entity.getClazz();
|
||||
fqcn = StringUtil.determineFullyQualifiedClassName( packageName, name );
|
||||
AccessType explicitAccessType = null;
|
||||
org.hibernate.jpamodelgen.xml.jaxb.AccessType type = entity.getAccess();
|
||||
org.hibernate.processor.xml.jaxb.AccessType type = entity.getAccess();
|
||||
if ( type != null ) {
|
||||
explicitAccessType = mapXmlAccessTypeToJpaAccessType( type );
|
||||
}
|
||||
|
@ -359,11 +359,11 @@ public class JpaDescriptorParser {
|
|||
context.addAccessTypeInformation( fqcn, accessInfo );
|
||||
}
|
||||
|
||||
for ( org.hibernate.jpamodelgen.xml.jaxb.MappedSuperclass mappedSuperClass : mappings.getMappedSuperclass() ) {
|
||||
for ( org.hibernate.processor.xml.jaxb.MappedSuperclass mappedSuperClass : mappings.getMappedSuperclass() ) {
|
||||
String name = mappedSuperClass.getClazz();
|
||||
fqcn = StringUtil.determineFullyQualifiedClassName( packageName, name );
|
||||
AccessType explicitAccessType = null;
|
||||
org.hibernate.jpamodelgen.xml.jaxb.AccessType type = mappedSuperClass.getAccess();
|
||||
org.hibernate.processor.xml.jaxb.AccessType type = mappedSuperClass.getAccess();
|
||||
if ( type != null ) {
|
||||
explicitAccessType = mapXmlAccessTypeToJpaAccessType( type );
|
||||
}
|
||||
|
@ -373,11 +373,11 @@ public class JpaDescriptorParser {
|
|||
context.addAccessTypeInformation( fqcn, accessInfo );
|
||||
}
|
||||
|
||||
for ( org.hibernate.jpamodelgen.xml.jaxb.Embeddable embeddable : mappings.getEmbeddable() ) {
|
||||
for ( org.hibernate.processor.xml.jaxb.Embeddable embeddable : mappings.getEmbeddable() ) {
|
||||
String name = embeddable.getClazz();
|
||||
fqcn = StringUtil.determineFullyQualifiedClassName( packageName, name );
|
||||
AccessType explicitAccessType = null;
|
||||
org.hibernate.jpamodelgen.xml.jaxb.AccessType type = embeddable.getAccess();
|
||||
org.hibernate.processor.xml.jaxb.AccessType type = embeddable.getAccess();
|
||||
if ( type != null ) {
|
||||
explicitAccessType = mapXmlAccessTypeToJpaAccessType( type );
|
||||
}
|
||||
|
@ -403,7 +403,7 @@ public class JpaDescriptorParser {
|
|||
}
|
||||
}
|
||||
|
||||
for ( org.hibernate.jpamodelgen.xml.jaxb.MappedSuperclass mappedSuperClass : mappings.getMappedSuperclass() ) {
|
||||
for ( org.hibernate.processor.xml.jaxb.MappedSuperclass mappedSuperClass : mappings.getMappedSuperclass() ) {
|
||||
String name = mappedSuperClass.getClazz();
|
||||
fqcn = StringUtil.determineFullyQualifiedClassName( packageName, name );
|
||||
TypeElement element = context.getTypeElementForFullyQualifiedName( fqcn );
|
||||
|
@ -437,7 +437,7 @@ public class JpaDescriptorParser {
|
|||
|
||||
PersistenceUnitDefaults persistenceUnitDefaults = meta.getPersistenceUnitDefaults();
|
||||
if ( persistenceUnitDefaults != null ) {
|
||||
org.hibernate.jpamodelgen.xml.jaxb.AccessType xmlAccessType = persistenceUnitDefaults.getAccess();
|
||||
org.hibernate.processor.xml.jaxb.AccessType xmlAccessType = persistenceUnitDefaults.getAccess();
|
||||
if ( xmlAccessType != null ) {
|
||||
context.setPersistenceUnitDefaultAccessType( mapXmlAccessTypeToJpaAccessType( xmlAccessType ) );
|
||||
}
|
||||
|
@ -449,7 +449,7 @@ public class JpaDescriptorParser {
|
|||
}
|
||||
}
|
||||
|
||||
private AccessType mapXmlAccessTypeToJpaAccessType(org.hibernate.jpamodelgen.xml.jaxb.AccessType xmlAccessType) {
|
||||
private AccessType mapXmlAccessTypeToJpaAccessType(org.hibernate.processor.xml.jaxb.AccessType xmlAccessType) {
|
||||
switch ( xmlAccessType ) {
|
||||
case FIELD:
|
||||
return AccessType.FIELD;
|
|
@ -4,11 +4,11 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.xml;
|
||||
package org.hibernate.processor.xml;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.jpamodelgen.util.StringUtil;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
import org.hibernate.processor.util.StringUtil;
|
||||
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
|
@ -4,9 +4,9 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.xml;
|
||||
package org.hibernate.processor.xml;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.MetaCollection;
|
||||
import org.hibernate.processor.model.MetaCollection;
|
||||
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.xml;
|
||||
package org.hibernate.processor.xml;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -17,40 +17,40 @@ import javax.lang.model.type.ExecutableType;
|
|||
import javax.lang.model.type.TypeMirror;
|
||||
import javax.tools.Diagnostic;
|
||||
|
||||
import org.hibernate.jpamodelgen.Context;
|
||||
import org.hibernate.jpamodelgen.ImportContextImpl;
|
||||
import org.hibernate.jpamodelgen.MetaModelGenerationException;
|
||||
import org.hibernate.jpamodelgen.model.ImportContext;
|
||||
import org.hibernate.jpamodelgen.model.MetaAttribute;
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.jpamodelgen.util.AccessTypeInformation;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.jpamodelgen.util.NullnessUtil;
|
||||
import org.hibernate.jpamodelgen.util.StringUtil;
|
||||
import org.hibernate.jpamodelgen.util.TypeUtils;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.Attributes;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.Basic;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.ElementCollection;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.Embeddable;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.EmbeddableAttributes;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.Embedded;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.EmbeddedId;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.Entity;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.Id;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.ManyToMany;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.ManyToOne;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.MapKeyClass;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.MappedSuperclass;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.OneToMany;
|
||||
import org.hibernate.jpamodelgen.xml.jaxb.OneToOne;
|
||||
import org.hibernate.processor.Context;
|
||||
import org.hibernate.processor.ImportContextImpl;
|
||||
import org.hibernate.processor.MetaModelGenerationException;
|
||||
import org.hibernate.processor.model.ImportContext;
|
||||
import org.hibernate.processor.model.MetaAttribute;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
import org.hibernate.processor.util.AccessTypeInformation;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
import org.hibernate.processor.util.NullnessUtil;
|
||||
import org.hibernate.processor.util.StringUtil;
|
||||
import org.hibernate.processor.util.TypeUtils;
|
||||
import org.hibernate.processor.xml.jaxb.Attributes;
|
||||
import org.hibernate.processor.xml.jaxb.Basic;
|
||||
import org.hibernate.processor.xml.jaxb.ElementCollection;
|
||||
import org.hibernate.processor.xml.jaxb.Embeddable;
|
||||
import org.hibernate.processor.xml.jaxb.EmbeddableAttributes;
|
||||
import org.hibernate.processor.xml.jaxb.Embedded;
|
||||
import org.hibernate.processor.xml.jaxb.EmbeddedId;
|
||||
import org.hibernate.processor.xml.jaxb.Entity;
|
||||
import org.hibernate.processor.xml.jaxb.Id;
|
||||
import org.hibernate.processor.xml.jaxb.ManyToMany;
|
||||
import org.hibernate.processor.xml.jaxb.ManyToOne;
|
||||
import org.hibernate.processor.xml.jaxb.MapKeyClass;
|
||||
import org.hibernate.processor.xml.jaxb.MappedSuperclass;
|
||||
import org.hibernate.processor.xml.jaxb.OneToMany;
|
||||
import org.hibernate.processor.xml.jaxb.OneToOne;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
import static org.hibernate.jpamodelgen.util.StringUtil.determineFullyQualifiedClassName;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.extractClosestRealTypeAsString;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.findMappedSuperClass;
|
||||
import static org.hibernate.jpamodelgen.util.TypeUtils.getElementKindForAccessType;
|
||||
import static org.hibernate.jpamodelgen.xml.jaxb.AccessType.*;
|
||||
import static org.hibernate.processor.util.StringUtil.determineFullyQualifiedClassName;
|
||||
import static org.hibernate.processor.util.TypeUtils.extractClosestRealTypeAsString;
|
||||
import static org.hibernate.processor.util.TypeUtils.findMappedSuperClass;
|
||||
import static org.hibernate.processor.util.TypeUtils.getElementKindForAccessType;
|
||||
import static org.hibernate.processor.xml.jaxb.AccessType.*;
|
||||
|
||||
/**
|
||||
* Collects XML-based meta information about an annotated type (entity, embeddable or mapped superclass).
|
||||
|
@ -612,7 +612,7 @@ public class XmlMetaEntity implements Metamodel {
|
|||
);
|
||||
}
|
||||
|
||||
private ElementKind getElementKind(org.hibernate.jpamodelgen.xml.jaxb.AccessType accessType) {
|
||||
private ElementKind getElementKind(org.hibernate.processor.xml.jaxb.AccessType accessType) {
|
||||
// if no explicit access type was specified in xml we use the entity access type
|
||||
if ( accessType == null ) {
|
||||
return getElementKindForAccessType( accessTypeInfo.getAccessType() );
|
|
@ -4,9 +4,9 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.xml;
|
||||
package org.hibernate.processor.xml;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.Metamodel;
|
||||
import org.hibernate.processor.model.Metamodel;
|
||||
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
|
@ -4,10 +4,10 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.xml;
|
||||
package org.hibernate.processor.xml;
|
||||
|
||||
import org.hibernate.jpamodelgen.model.MetaSingleAttribute;
|
||||
import org.hibernate.jpamodelgen.util.Constants;
|
||||
import org.hibernate.processor.model.MetaSingleAttribute;
|
||||
import org.hibernate.processor.util.Constants;
|
||||
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
|
@ -7,4 +7,4 @@
|
|||
/**
|
||||
* Implementation of the model classes backed by annotations.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.xml;
|
||||
package org.hibernate.processor.xml;
|
|
@ -1 +1 @@
|
|||
org.hibernate.jpamodelgen.HibernateProcessor,isolating
|
||||
org.hibernate.processor.HibernateProcessor,isolating
|
|
@ -10,4 +10,4 @@
|
|||
# License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
# See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
#
|
||||
org.hibernate.jpamodelgen.HibernateProcessor
|
||||
org.hibernate.processor.HibernateProcessor
|
|
@ -1,4 +1,4 @@
|
|||
package org.hibernate.jpamodelgen.test.hrPanache;
|
||||
package org.hibernate.processor.test.hrPanache;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.hibernate.jpamodelgen.test.hrPanache;
|
||||
package org.hibernate.processor.test.hrPanache;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
|
@ -1,4 +1,4 @@
|
|||
package org.hibernate.jpamodelgen.test.hrPanache;
|
||||
package org.hibernate.processor.test.hrPanache;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.hibernate.jpamodelgen.test.hrPanache;
|
||||
package org.hibernate.processor.test.hrPanache;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -4,19 +4,17 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test.hrPanache;
|
||||
package org.hibernate.processor.test.hrPanache;
|
||||
|
||||
import org.hibernate.jpamodelgen.test.util.CompilationTest;
|
||||
import org.hibernate.jpamodelgen.test.util.TestUtil;
|
||||
import org.hibernate.jpamodelgen.test.util.WithClasses;
|
||||
import org.hibernate.processor.test.util.CompilationTest;
|
||||
import org.hibernate.processor.test.util.TestUtil;
|
||||
import org.hibernate.processor.test.util.WithClasses;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
|
||||
import io.smallrye.mutiny.Uni;
|
||||
import jakarta.inject.Inject;
|
||||
import jakarta.persistence.EntityManager;
|
||||
|
||||
import static org.hibernate.jpamodelgen.test.util.TestUtil.getMetamodelClassFor;
|
||||
import static org.hibernate.processor.test.util.TestUtil.getMetamodelClassFor;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Method;
|
|
@ -1,4 +1,4 @@
|
|||
package org.hibernate.jpamodelgen.test.ormPanache;
|
||||
package org.hibernate.processor.test.ormPanache;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
|
@ -1,4 +1,4 @@
|
|||
package org.hibernate.jpamodelgen.test.ormPanache;
|
||||
package org.hibernate.processor.test.ormPanache;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.hibernate.jpamodelgen.test.ormPanache;
|
||||
package org.hibernate.processor.test.ormPanache;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -4,18 +4,18 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test.ormPanache;
|
||||
package org.hibernate.processor.test.ormPanache;
|
||||
|
||||
import org.hibernate.jpamodelgen.test.util.CompilationTest;
|
||||
import org.hibernate.jpamodelgen.test.util.TestUtil;
|
||||
import org.hibernate.jpamodelgen.test.util.WithClasses;
|
||||
import org.hibernate.processor.test.util.CompilationTest;
|
||||
import org.hibernate.processor.test.util.TestUtil;
|
||||
import org.hibernate.processor.test.util.WithClasses;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
|
||||
import jakarta.inject.Inject;
|
||||
import jakarta.persistence.EntityManager;
|
||||
|
||||
import static org.hibernate.jpamodelgen.test.util.TestUtil.getMetamodelClassFor;
|
||||
import static org.hibernate.processor.test.util.TestUtil.getMetamodelClassFor;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Method;
|
|
@ -7,12 +7,12 @@
|
|||
|
||||
|
||||
|
||||
import org.hibernate.jpamodelgen.test.util.CompilationTest;
|
||||
import org.hibernate.jpamodelgen.test.util.TestForIssue;
|
||||
import org.hibernate.jpamodelgen.test.util.WithClasses;
|
||||
import org.hibernate.processor.test.util.CompilationTest;
|
||||
import org.hibernate.processor.test.util.TestForIssue;
|
||||
import org.hibernate.processor.test.util.WithClasses;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hibernate.jpamodelgen.test.util.TestUtil.assertMetamodelClassGeneratedFor;
|
||||
import static org.hibernate.processor.test.util.TestUtil.assertMetamodelClassGeneratedFor;
|
||||
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
package org.hibernate.jpamodelgen.test.namedquery;
|
||||
|
||||
enum Type {Book, Magazine, Journal}
|
|
@ -4,10 +4,10 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test;
|
||||
package org.hibernate.processor.test;
|
||||
|
||||
import org.hibernate.jpamodelgen.test.util.TestForIssue;
|
||||
import org.hibernate.jpamodelgen.util.StringUtil;
|
||||
import org.hibernate.processor.test.util.TestForIssue;
|
||||
import org.hibernate.processor.util.StringUtil;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
|
@ -4,18 +4,18 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test.accesstype;
|
||||
package org.hibernate.processor.test.accesstype;
|
||||
|
||||
import org.hibernate.jpamodelgen.test.util.CompilationTest;
|
||||
import org.hibernate.jpamodelgen.test.util.TestForIssue;
|
||||
import org.hibernate.jpamodelgen.test.util.TestUtil;
|
||||
import org.hibernate.jpamodelgen.test.util.WithClasses;
|
||||
import org.hibernate.jpamodelgen.test.util.WithMappingFiles;
|
||||
import org.hibernate.processor.test.util.CompilationTest;
|
||||
import org.hibernate.processor.test.util.TestForIssue;
|
||||
import org.hibernate.processor.test.util.TestUtil;
|
||||
import org.hibernate.processor.test.util.WithClasses;
|
||||
import org.hibernate.processor.test.util.WithMappingFiles;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hibernate.jpamodelgen.test.util.TestUtil.assertAbsenceOfFieldInMetamodelFor;
|
||||
import static org.hibernate.jpamodelgen.test.util.TestUtil.assertAttributeTypeInMetaModelFor;
|
||||
import static org.hibernate.jpamodelgen.test.util.TestUtil.assertPresenceOfFieldInMetamodelFor;
|
||||
import static org.hibernate.processor.test.util.TestUtil.assertAbsenceOfFieldInMetamodelFor;
|
||||
import static org.hibernate.processor.test.util.TestUtil.assertAttributeTypeInMetaModelFor;
|
||||
import static org.hibernate.processor.test.util.TestUtil.assertPresenceOfFieldInMetamodelFor;
|
||||
|
||||
/**
|
||||
* @author Emmanuel Bernard
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test.accesstype;
|
||||
package org.hibernate.processor.test.accesstype;
|
||||
|
||||
import java.util.Set;
|
||||
import jakarta.persistence.Embeddable;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test.accesstype;
|
||||
package org.hibernate.processor.test.accesstype;
|
||||
|
||||
import jakarta.persistence.MappedSuperclass;
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test.accesstype;
|
||||
package org.hibernate.processor.test.accesstype;
|
||||
|
||||
import jakarta.persistence.MappedSuperclass;
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test.accesstype;
|
||||
package org.hibernate.processor.test.accesstype;
|
||||
|
||||
import jakarta.persistence.Embeddable;
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test.accesstype;
|
||||
package org.hibernate.processor.test.accesstype;
|
||||
|
||||
import java.util.Set;
|
||||
import jakarta.persistence.Entity;
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test.accesstype;
|
||||
package org.hibernate.processor.test.accesstype;
|
||||
|
||||
import jakarta.persistence.Embeddable;
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpamodelgen.test.accesstype;
|
||||
package org.hibernate.processor.test.accesstype;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Access;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue