public class ComponentPropertyHolder extends AbstractPropertyHolder
@Embeddable @Convert( attributeName="city", ... ) class Address { ... @Convert(...) public String city; } @Entity @Convert( attributeName="homeAddress.city", ... ) class Person { ... @Embedded @Convert( attributeName="city", ... ) public Address homeAddress; }As you can see, lots of ways to specify the conversion for embeddable attributes :(
parent
Constructor and Description |
---|
ComponentPropertyHolder(Component component,
java.lang.String path,
PropertyData inferredData,
PropertyHolder parent,
MetadataBuildingContext context) |
Modifier and Type | Method and Description |
---|---|
Join |
addJoin(javax.persistence.JoinTable joinTableAnn,
boolean noDelayInPkColumnCreation) |
void |
addProperty(Property prop,
Ejb3Column[] columns,
org.hibernate.annotations.common.reflection.XClass declaringClass) |
void |
addProperty(Property prop,
org.hibernate.annotations.common.reflection.XClass declaringClass) |
java.lang.String |
getClassName() |
java.lang.String |
getEntityName() |
java.lang.String |
getEntityOwnerClassName() |
KeyValue |
getIdentifier() |
javax.persistence.Column[] |
getOverriddenColumn(java.lang.String propertyName)
Get column overriding, property first, then parent, then holder
replace the placeholder 'collection&&element' with nothing
These rules are here to support both JPA 2 and legacy overriding rules.
|
javax.persistence.JoinColumn[] |
getOverriddenJoinColumn(java.lang.String propertyName)
Get column overriding, property first, then parent, then holder
replace the placeholder 'collection&&element' with nothing
These rules are here to support both JPA 2 and legacy overriding rules.
|
PersistentClass |
getPersistentClass() |
Table |
getTable() |
boolean |
isComponent() |
boolean |
isEntity() |
boolean |
isOrWithinEmbeddedId()
Return true if this component is or is embedded in a @EmbeddedId
|
protected AttributeConversionInfo |
locateAttributeConversionInfo(java.lang.String path) |
protected AttributeConversionInfo |
locateAttributeConversionInfo(org.hibernate.annotations.common.reflection.XProperty property) |
protected java.lang.String |
normalizeCompositePath(java.lang.String attributeName) |
protected java.lang.String |
normalizeCompositePathForLogging(java.lang.String attributeName) |
void |
setParentProperty(java.lang.String parentProperty) |
void |
startingProperty(org.hibernate.annotations.common.reflection.XProperty property)
Called during binding to allow the PropertyHolder to inspect its discovered properties.
|
java.lang.String |
toString() |
areTypeMatch, buildExceptionFromInstantiationError, getContext, getJoinTable, getOverriddenJoinTable, getPath, isInIdClass, makeAttributeConverterDescriptor, resolveAttributeConverterDescriptor, setCurrentProperty, setInIdClass
public ComponentPropertyHolder(Component component, java.lang.String path, PropertyData inferredData, PropertyHolder parent, MetadataBuildingContext context)
protected java.lang.String normalizeCompositePath(java.lang.String attributeName)
normalizeCompositePath
in class AbstractPropertyHolder
protected java.lang.String normalizeCompositePathForLogging(java.lang.String attributeName)
normalizeCompositePathForLogging
in class AbstractPropertyHolder
public void startingProperty(org.hibernate.annotations.common.reflection.XProperty property)
PropertyHolder
property
- The propertyprotected AttributeConversionInfo locateAttributeConversionInfo(org.hibernate.annotations.common.reflection.XProperty property)
locateAttributeConversionInfo
in class AbstractPropertyHolder
protected AttributeConversionInfo locateAttributeConversionInfo(java.lang.String path)
locateAttributeConversionInfo
in class AbstractPropertyHolder
public java.lang.String getEntityName()
public void addProperty(Property prop, Ejb3Column[] columns, org.hibernate.annotations.common.reflection.XClass declaringClass)
public Join addJoin(javax.persistence.JoinTable joinTableAnn, boolean noDelayInPkColumnCreation)
public java.lang.String getClassName()
public java.lang.String getEntityOwnerClassName()
public Table getTable()
public void addProperty(Property prop, org.hibernate.annotations.common.reflection.XClass declaringClass)
public KeyValue getIdentifier()
public boolean isOrWithinEmbeddedId()
PropertyHolder
public PersistentClass getPersistentClass()
public boolean isComponent()
public boolean isEntity()
public void setParentProperty(java.lang.String parentProperty)
setParentProperty
in interface PropertyHolder
setParentProperty
in class AbstractPropertyHolder
public javax.persistence.Column[] getOverriddenColumn(java.lang.String propertyName)
AbstractPropertyHolder
getOverriddenColumn
in interface PropertyHolder
getOverriddenColumn
in class AbstractPropertyHolder
public javax.persistence.JoinColumn[] getOverriddenJoinColumn(java.lang.String propertyName)
AbstractPropertyHolder
getOverriddenJoinColumn
in interface PropertyHolder
getOverriddenJoinColumn
in class AbstractPropertyHolder
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.