HHH-12212 - Derived Identifiers component column size not applied
This commit is contained in:
parent
bda13bf6d8
commit
3fbe7ff5b7
|
@ -198,6 +198,7 @@ public class CopyIdentifierComponentSecondPass implements SecondPass {
|
||||||
.getName();
|
.getName();
|
||||||
value.addColumn( new Column( columnName ) );
|
value.addColumn( new Column( columnName ) );
|
||||||
if ( joinColumn != null ) {
|
if ( joinColumn != null ) {
|
||||||
|
applyComponentColumnSizeValueToJoinColumn( column, joinColumn );
|
||||||
joinColumn.linkWithValue( value );
|
joinColumn.linkWithValue( value );
|
||||||
}
|
}
|
||||||
column.setValue( value );
|
column.setValue( value );
|
||||||
|
@ -206,6 +207,13 @@ public class CopyIdentifierComponentSecondPass implements SecondPass {
|
||||||
return property;
|
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 ) {
|
public boolean dependentUpon( CopyIdentifierComponentSecondPass other ) {
|
||||||
return this.referencedEntityName.equals( other.component.getOwner().getEntityName() );
|
return this.referencedEntityName.equals( other.component.getOwner().getEntityName() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue