Package org.hibernate.cfg
Enum MetadataSourceType
- java.lang.Object
-
- java.lang.Enum<MetadataSourceType>
-
- org.hibernate.cfg.MetadataSourceType
-
- All Implemented Interfaces:
Serializable,Comparable<MetadataSourceType>
@Deprecated(since="6", forRemoval=true) public enum MetadataSourceType extends Enum<MetadataSourceType>
Deprecated, for removal: This API element is subject to removal in a future version.hbm.xmlmappings are no longer supported, making this attribute irrelevantEnumeration of the types of sources of mapping metadata
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASSDeprecated, for removal: This API element is subject to removal in a future version.Indicates metadata coming from either annotations,orx.xmlor a combination of the two.HBMDeprecated, for removal: This API element is subject to removal in a future version.Indicates metadata coming fromhbm.xmlfiles
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MetadataSourceTypeparsePrecedence(String value)Deprecated, for removal: This API element is subject to removal in a future version.StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.static MetadataSourceTypevalueOf(String name)Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this type with the specified name.static MetadataSourceType[]values()Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HBM
public static final MetadataSourceType HBM
Deprecated, for removal: This API element is subject to removal in a future version.Indicates metadata coming fromhbm.xmlfiles
-
CLASS
public static final MetadataSourceType CLASS
Deprecated, for removal: This API element is subject to removal in a future version.Indicates metadata coming from either annotations,orx.xmlor a combination of the two.
-
-
Method Detail
-
values
public static MetadataSourceType[] values()
Deprecated, for removal: This API element is subject to removal in a future version.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 (MetadataSourceType c : MetadataSourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetadataSourceType valueOf(String name)
Deprecated, for removal: This API element is subject to removal in a future version.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
-
toString
public String toString()
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toStringin classEnum<MetadataSourceType>
-
parsePrecedence
public static MetadataSourceType parsePrecedence(String value)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-