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 enum MappingFeature extends Enum<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 usingCONVERTER
and re-use that model.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGG_COMP_ID
ANY
COLLECTION_TABLE
CONVERTER
DISCRIMINATOR_INHERIT
DYNAMIC_MODEL
EMBEDDABLE
ENUMERATED
ID_CLASS
JOIN_COLUMN
JOIN_TABLE
JOINED_INHERIT
MANY_ANY
MANY_MANY
MANY_ONE
NON_AGG_COMP_ID
ONE_MANY
ONE_ONE
SECONDARY_TABLE
UNION_INHERIT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EnumSet<MappingFeature>
all()
static MappingFeature
valueOf(String name)
Returns the enum constant of this type with the specified name.static MappingFeature[]
values()
Returns an array containing the constants of this enum type, in the 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, in the order they are declared. This method may be used to iterate over 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 match exactly an identifier used to declare an enum 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()
-
-