Package org.hibernate.testing.orm.domain
Enum MappingFeature
- java.lang.Object
- java.lang.Enum<MappingFeature>
- org.hibernate.testing.orm.domain.MappingFeature
- All Implemented Interfaces:
Serializable,Comparable<MappingFeature>
public enumMappingFeatureextendsEnum<MappingFeature>
Identifies specific mapping features used by aDomainModelDescriptor. The intent is to help categorize which models use specific mapping features to help facilitate testing various outcomes based on those features. For example, when writing a test that depends on JPA'sAttributeConverter, we could just see which DomainModel reports usingCONVERTERand re-use that model.
Enum Constant Summary
Enum Constants Enum Constant Description AGG_COMP_IDANYCOLLECTION_TABLECONVERTERDISCRIMINATOR_INHERITDYNAMIC_MODELEMBEDDABLEENUMERATEDID_CLASSJOIN_COLUMNJOIN_TABLEJOINED_INHERITMANY_ANYMANY_MANYMANY_ONENON_AGG_COMP_IDONE_MANYONE_ONESECONDARY_TABLEUNION_INHERIT
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description staticEnumSet<MappingFeature>all()staticMappingFeaturevalueOf(String name)Returns the enum constant of this type with the specified name.staticMappingFeature[]values()Returns an array containing the constants of this enum type, inthe order they are declared.
Enum Constant Detail
CONVERTER
public static final MappingFeature CONVERTER
ENUMERATED
public static final MappingFeature ENUMERATED
DYNAMIC_MODEL
public static final MappingFeature DYNAMIC_MODEL
DISCRIMINATOR_INHERIT
public static final MappingFeature DISCRIMINATOR_INHERIT
JOINED_INHERIT
public static final MappingFeature JOINED_INHERIT
UNION_INHERIT
public static final MappingFeature UNION_INHERIT
SECONDARY_TABLE
public static final MappingFeature SECONDARY_TABLE
AGG_COMP_ID
public static final MappingFeature AGG_COMP_ID
NON_AGG_COMP_ID
public static final MappingFeature NON_AGG_COMP_ID
ID_CLASS
public static final MappingFeature ID_CLASS
EMBEDDABLE
public static final MappingFeature EMBEDDABLE
MANY_ONE
public static final MappingFeature MANY_ONE
ONE_ONE
public static final MappingFeature ONE_ONE
ONE_MANY
public static final MappingFeature ONE_MANY
MANY_MANY
public static final MappingFeature MANY_MANY
ANY
public static final MappingFeature ANY
MANY_ANY
public static final MappingFeature MANY_ANY
COLLECTION_TABLE
public static final MappingFeature COLLECTION_TABLE
JOIN_TABLE
public static final MappingFeature JOIN_TABLE
JOIN_COLUMN
public static final MappingFeature JOIN_COLUMN
Method Detail
values
public static MappingFeature[] values()
Returns an array containing the constants of this enum type, inthe order they are declared. This method may be used to iterateover the constants as follows:for (MappingFeature c : MappingFeature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static MappingFeature valueOf(String name)
Returns the enum constant of this type with the specified name.The string must matchexactly an identifier used to declare anenum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
all
public static EnumSet<MappingFeature> all()