mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 22:39:13 +00:00
HHH-12212 - Derived Identifiers component column size not applied
This commit is contained in:
parent
bda13bf6d8
commit
3fbe7ff5b7
@ -198,6 +198,7 @@ private Property createSimpleProperty(
|
||||
.getName();
|
||||
value.addColumn( new Column( columnName ) );
|
||||
if ( joinColumn != null ) {
|
||||
applyComponentColumnSizeValueToJoinColumn( column, joinColumn );
|
||||
joinColumn.linkWithValue( value );
|
||||
}
|
||||
column.setValue( value );
|
||||
@ -206,6 +207,13 @@ private Property createSimpleProperty(
|
||||
return property;
|
||||
}
|
||||
|
||||
private void applyComponentColumnSizeValueToJoinColumn(Column column, Ejb3JoinColumn joinColumn) {
|
||||
Column mappingColumn = joinColumn.getMappingColumn();
|
||||
mappingColumn.setLength( column.getLength() );
|
||||
mappingColumn.setPrecision( column.getPrecision() );
|
||||
mappingColumn.setScale( column.getScale() );
|
||||
}
|
||||
|
||||
public boolean dependentUpon( CopyIdentifierComponentSecondPass other ) {
|
||||
return this.referencedEntityName.equals( other.component.getOwner().getEntityName() );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user