@Override public void doSecondPass(Map idGeneratorDefinitionMap) throws MappingException { BinderHelper.makeIdGenerator( id, idXProperty, generatorType, generatorName, buildingContext, localIdentifierGeneratorDefinition ); } }
/** * apply an id generator to a SimpleValue */ public static void makeIdGenerator( SimpleValue id, XProperty idXProperty, String generatorType, String generatorName, MetadataBuildingContext buildingContext, IdentifierGeneratorDefinition foreignKGeneratorDefinition) { Map<String, IdentifierGeneratorDefinition> localIdentifiers = null; if ( foreignKGeneratorDefinition != null ) { localIdentifiers = new HashMap<>(); localIdentifiers.put( foreignKGeneratorDefinition.getName(), foreignKGeneratorDefinition ); } makeIdGenerator( id, idXProperty, generatorType, generatorName, buildingContext, localIdentifiers ); }
.clone(); localGenerators.putAll( buildGenerators( idXProperty, buildingContext ) ); BinderHelper.makeIdGenerator( idValue, idXProperty,
BinderHelper.makeIdGenerator( id, property,
Map<String, IdentifierGeneratorDefinition> localGenerators = new HashMap<>(); localGenerators.putAll( buildGenerators( property, buildingContext ) ); BinderHelper.makeIdGenerator( (SimpleValue) comp.getProperty( property.getName() ).getValue(), property,
BinderHelper.makeIdGenerator( id, inferredData.getProperty(),
generatorType = "assigned"; BinderHelper.makeIdGenerator( idValue, generatorType, generatorName, mappings, localGenerators );
@Override public void doSecondPass(Map idGeneratorDefinitionMap) throws MappingException { BinderHelper.makeIdGenerator( id, idXProperty, generatorType, generatorName, buildingContext, localIdentifierGeneratorDefinition ); } }
String generator = generatedValue != null ? generatedValue.generator() : BinderHelper.ANNOTATION_STRING_DEFAULT; BinderHelper.makeIdGenerator( ( SimpleValue ) comp.getProperty( property.getName() ).getValue(), generatorType,
generatorType = null; BinderHelper.makeIdGenerator( id, generatorType, generator, mappings, localGenerators );
localGenerators.put( foreignGenerator.getName(), foreignGenerator ); BinderHelper.makeIdGenerator( (SimpleValue) propertyBinder.getValue(), property,
/** * apply an id generator to a SimpleValue */ public static void makeIdGenerator( SimpleValue id, XProperty idXProperty, String generatorType, String generatorName, MetadataBuildingContext buildingContext, IdentifierGeneratorDefinition foreignKGeneratorDefinition) { Map<String, IdentifierGeneratorDefinition> localIdentifiers = null; if ( foreignKGeneratorDefinition != null ) { localIdentifiers = new HashMap<>(); localIdentifiers.put( foreignKGeneratorDefinition.getName(), foreignKGeneratorDefinition ); } makeIdGenerator( id, idXProperty, generatorType, generatorName, buildingContext, localIdentifiers ); }
BinderHelper.makeIdGenerator( id, generatorType, generatorName, mappings, localGenerators ); if ( isEmbedded ) { rootClass.setEmbeddedIdentifier( inferredData.getPropertyClass() == null );
generatorType = "assigned"; BinderHelper.makeIdGenerator( idValue, generatorType, generatorName, mappings, localGenerators );
generatorType = "assigned"; BinderHelper.makeIdGenerator( idValue, generatorType, generatorName, mappings, localGenerators );
generatorType = null; BinderHelper.makeIdGenerator( id, generatorType, generator, mappings, localGenerators );
generatorType = null; BinderHelper.makeIdGenerator( id, generatorType, generator, mappings, localGenerators );
localGenerators.put( foreignGenerator.getName(), foreignGenerator ); BinderHelper.makeIdGenerator( ( SimpleValue ) propertyBinder.getValue(), foreignGenerator.getIdentifierGeneratorStrategy(),
.clone(); localGenerators.putAll( buildGenerators( idXProperty, buildingContext ) ); BinderHelper.makeIdGenerator( idValue, idXProperty,
BinderHelper.makeIdGenerator( id, generatorType, generatorName, mappings, localGenerators ); if ( isEmbedded ) { rootClass.setEmbeddedIdentifier( inferredData.getPropertyClass() == null );