Class GeneratorStrategies
java.lang.Object
org.hibernate.boot.model.internal.GeneratorStrategies
Handles interpretation of old
hbm.xml
-style generator strategy names.- Since:
- 7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongeneratorClass
(String strategy, SimpleValue idValue) Interpret an "old" generator strategy name as aGenerator
class.static String
generatorStrategy
(GenerationType generationType, String name, org.hibernate.models.spi.TypeDetails type) Interpret a JPAGenerationType
as an old-style generator strategy name.mapLegacyNamedGenerator
(String strategy, MetadataBuildingContext buildingContext) mapLegacyNamedGenerator
(String strategy, Dialect dialect) mapLegacyNamedGenerator
(String strategy, SimpleValue idValue)
-
Constructor Details
-
GeneratorStrategies
public GeneratorStrategies()
-
-
Method Details
-
generatorStrategy
public static String generatorStrategy(GenerationType generationType, String name, org.hibernate.models.spi.TypeDetails type) Interpret a JPAGenerationType
as an old-style generator strategy name.- Parameters:
generationType
- the type specified byGeneratedValue.strategy()
name
- the name specified byGeneratedValue.generator()
type
- the Java type of the generated identifier- Returns:
- a
hbml.xml
-equivalent string identifying the strategy
-
generatorClass
Interpret an "old" generator strategy name as aGenerator
class. -
mapLegacyNamedGenerator
-
mapLegacyNamedGenerator
public static Class<? extends Generator> mapLegacyNamedGenerator(String strategy, MetadataBuildingContext buildingContext) -
mapLegacyNamedGenerator
public static Class<? extends Generator> mapLegacyNamedGenerator(String strategy, SimpleValue idValue)
-