mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-26 21:35:46 +00:00
HHH-6212 Renaming SimpleAttribute to BasicAttribute
This commit is contained in:
parent
ae8a29bdb2
commit
9eb049040a
@ -40,7 +40,7 @@
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
||||
*/
|
||||
public class AssociationAttribute extends SimpleAttribute {
|
||||
public class AssociationAttribute extends BasicAttribute {
|
||||
private final AttributeType associationType;
|
||||
private final boolean ignoreNotFound;
|
||||
private final String referencedEntityType;
|
||||
|
@ -27,9 +27,9 @@
|
||||
* @author Hardy Ferentschik
|
||||
*/
|
||||
public class ColumnSourceImpl extends ColumnValuesSourceImpl {
|
||||
private final SimpleAttribute attribute;
|
||||
private final BasicAttribute attribute;
|
||||
|
||||
ColumnSourceImpl(SimpleAttribute attribute) {
|
||||
ColumnSourceImpl(BasicAttribute attribute) {
|
||||
super( attribute.getColumnValues() );
|
||||
this.attribute = attribute;
|
||||
}
|
||||
|
@ -31,9 +31,9 @@
|
||||
* @author Hardy Ferentschik
|
||||
*/
|
||||
public class SimpleIdentifierSourceImpl implements SimpleIdentifierSource {
|
||||
private final SimpleAttribute attribute;
|
||||
private final BasicAttribute attribute;
|
||||
|
||||
public SimpleIdentifierSourceImpl(SimpleAttribute attribute) {
|
||||
public SimpleIdentifierSourceImpl(BasicAttribute attribute) {
|
||||
this.attribute = attribute;
|
||||
}
|
||||
|
||||
|
@ -39,9 +39,9 @@
|
||||
* @author Hardy Ferentschik
|
||||
*/
|
||||
public class SingularAttributeSourceImpl implements SingularAttributeSource {
|
||||
private final SimpleAttribute attribute;
|
||||
private final BasicAttribute attribute;
|
||||
|
||||
public SingularAttributeSourceImpl(SimpleAttribute attribute) {
|
||||
public SingularAttributeSourceImpl(BasicAttribute attribute) {
|
||||
this.attribute = attribute;
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@
|
||||
import org.hibernate.metamodel.source.annotations.attribute.AttributeOverride;
|
||||
import org.hibernate.metamodel.source.annotations.attribute.AttributeType;
|
||||
import org.hibernate.metamodel.source.annotations.attribute.MappedAttribute;
|
||||
import org.hibernate.metamodel.source.annotations.attribute.SimpleAttribute;
|
||||
import org.hibernate.metamodel.source.annotations.attribute.BasicAttribute;
|
||||
|
||||
/**
|
||||
* Base class for a configured entity, mapped super class or embeddable
|
||||
@ -99,7 +99,7 @@ public class ConfiguredClass {
|
||||
/**
|
||||
* The id attributes
|
||||
*/
|
||||
private final Map<String, SimpleAttribute> idAttributeMap;
|
||||
private final Map<String, BasicAttribute> idAttributeMap;
|
||||
|
||||
/**
|
||||
* The mapped association attributes for this entity
|
||||
@ -109,12 +109,12 @@ public class ConfiguredClass {
|
||||
/**
|
||||
* The mapped simple attributes for this entity
|
||||
*/
|
||||
private final Map<String, SimpleAttribute> simpleAttributeMap;
|
||||
private final Map<String, BasicAttribute> simpleAttributeMap;
|
||||
|
||||
/**
|
||||
* The version attribute or {@code null} in case none exists.
|
||||
*/
|
||||
private SimpleAttribute versionAttribute;
|
||||
private BasicAttribute versionAttribute;
|
||||
|
||||
/**
|
||||
* The embedded classes for this entity
|
||||
@ -143,8 +143,8 @@ public ConfiguredClass(
|
||||
this.clazz = context.locateClassByName( classInfo.toString() );
|
||||
this.configuredClassType = determineType();
|
||||
this.classAccessType = determineClassAccessType( defaultAccessType );
|
||||
this.simpleAttributeMap = new TreeMap<String, SimpleAttribute>();
|
||||
this.idAttributeMap = new TreeMap<String, SimpleAttribute>();
|
||||
this.simpleAttributeMap = new TreeMap<String, BasicAttribute>();
|
||||
this.idAttributeMap = new TreeMap<String, BasicAttribute>();
|
||||
this.associationAttributeMap = new TreeMap<String, AssociationAttribute>();
|
||||
|
||||
collectAttributes();
|
||||
@ -175,15 +175,15 @@ public ConfiguredClassType getConfiguredClassType() {
|
||||
return configuredClassType;
|
||||
}
|
||||
|
||||
public Iterable<SimpleAttribute> getSimpleAttributes() {
|
||||
public Iterable<BasicAttribute> getSimpleAttributes() {
|
||||
return simpleAttributeMap.values();
|
||||
}
|
||||
|
||||
public Iterable<SimpleAttribute> getIdAttributes() {
|
||||
public Iterable<BasicAttribute> getIdAttributes() {
|
||||
return idAttributeMap.values();
|
||||
}
|
||||
|
||||
public SimpleAttribute getVersionAttribute() {
|
||||
public BasicAttribute getVersionAttribute() {
|
||||
return versionAttribute;
|
||||
}
|
||||
|
||||
@ -445,7 +445,7 @@ private void createMappedAttribute(Member member, ResolvedTypeWithMembers resolv
|
||||
String accessTypeString = accessType.toString().toLowerCase();
|
||||
switch ( attributeNature ) {
|
||||
case BASIC: {
|
||||
SimpleAttribute attribute = SimpleAttribute.createSimpleAttribute(
|
||||
BasicAttribute attribute = BasicAttribute.createSimpleAttribute(
|
||||
attributeName, attributeType, annotations, accessTypeString
|
||||
);
|
||||
if ( attribute.isId() ) {
|
||||
|
@ -28,7 +28,7 @@
|
||||
import org.hibernate.engine.OptimisticLockStyle;
|
||||
import org.hibernate.metamodel.binding.Caching;
|
||||
import org.hibernate.metamodel.source.annotations.attribute.DiscriminatorSourceImpl;
|
||||
import org.hibernate.metamodel.source.annotations.attribute.SimpleAttribute;
|
||||
import org.hibernate.metamodel.source.annotations.attribute.BasicAttribute;
|
||||
import org.hibernate.metamodel.source.annotations.attribute.SimpleIdentifierSourceImpl;
|
||||
import org.hibernate.metamodel.source.annotations.attribute.SingularAttributeSourceImpl;
|
||||
import org.hibernate.metamodel.source.binder.DiscriminatorSource;
|
||||
@ -49,7 +49,7 @@ public IdentifierSource getIdentifierSource() {
|
||||
IdType idType = getEntityClass().getIdType();
|
||||
switch ( idType ) {
|
||||
case SIMPLE: {
|
||||
SimpleAttribute attribute = getEntityClass().getIdAttributes().iterator().next();
|
||||
BasicAttribute attribute = getEntityClass().getIdAttributes().iterator().next();
|
||||
return new SimpleIdentifierSourceImpl( attribute );
|
||||
}
|
||||
case COMPOSED: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user