Package org.hibernate.metamodel.mapping
Class DefaultDiscriminatorConverter<O,R>
java.lang.Object
org.hibernate.metamodel.mapping.DiscriminatorConverter<O,R>
org.hibernate.metamodel.mapping.DefaultDiscriminatorConverter<O,R>
- All Implemented Interfaces:
BasicValueConverter<O,
R>
Implements the default discriminator assignment strategy defined by JPA,
that is, the discriminator value is the JPA (unqualified) entity name.
This strategy is used when no explicit discriminator mapping is specified.
-
Constructor Summary
ConstructorDescriptionDefaultDiscriminatorConverter
(NavigableRole discriminatorRole, JavaType<O> domainJavaType, JavaType<R> relationalJavaType, MappingMetamodelImplementor mappingMetamodel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
forEachValueDetail
(Consumer<DiscriminatorValueDetails> consumer) static <O,
R> DefaultDiscriminatorConverter<O, R> fromMappingMetamodel
(NavigableRole role, JavaType<O> domainJavaType, BasicType<R> underlyingJdbcMapping, MappingMetamodelImplementor mappingMetamodel) <X> X
fromValueDetails
(Function<DiscriminatorValueDetails, X> handler) getDetailsForEntityName
(String entityName) getDetailsForRelationalForm
(R relationalForm) Methods inherited from class org.hibernate.metamodel.mapping.DiscriminatorConverter
getDiscriminatorName, getDomainJavaType, getRelationalJavaType, toDomainValue, toRelationalValue, toString
-
Constructor Details
-
Method Details
-
getDetailsForRelationalForm
- Overrides:
getDetailsForRelationalForm
in classDiscriminatorConverter<O,
R>
-
getDetailsForEntityName
- Specified by:
getDetailsForEntityName
in classDiscriminatorConverter<O,
R>
-
getDetailsForDiscriminatorValue
- Specified by:
getDetailsForDiscriminatorValue
in classDiscriminatorConverter<O,
R>
-
forEachValueDetail
- Specified by:
forEachValueDetail
in classDiscriminatorConverter<O,
R>
-
fromValueDetails
- Specified by:
fromValueDetails
in classDiscriminatorConverter<O,
R>