HHH-16918 Retain any key and discriminator (insert/updat)ability
This commit is contained in:
parent
222ff4071b
commit
d2a88cb883
|
@ -261,7 +261,11 @@ public class Any extends SimpleValue {
|
|||
public void setDiscriminator(BasicValue discriminatorDescriptor) {
|
||||
this.discriminatorDescriptor = discriminatorDescriptor;
|
||||
if ( discriminatorDescriptor.getColumn() instanceof Column ) {
|
||||
justAddColumn( (Column) discriminatorDescriptor.getColumn() );
|
||||
justAddColumn(
|
||||
(Column) discriminatorDescriptor.getColumn(),
|
||||
discriminatorDescriptor.isColumnInsertable( 0 ),
|
||||
discriminatorDescriptor.isColumnUpdateable( 0 )
|
||||
);
|
||||
}
|
||||
else {
|
||||
justAddFormula( (Formula) discriminatorDescriptor.getColumn() );
|
||||
|
@ -278,7 +282,11 @@ public class Any extends SimpleValue {
|
|||
public void setKey(BasicValue keyDescriptor) {
|
||||
this.keyDescriptor = keyDescriptor;
|
||||
if ( keyDescriptor.getColumn() instanceof Column ) {
|
||||
justAddColumn( (Column) keyDescriptor.getColumn() );
|
||||
justAddColumn(
|
||||
(Column) keyDescriptor.getColumn(),
|
||||
keyDescriptor.isColumnInsertable( 0 ),
|
||||
keyDescriptor.isColumnUpdateable( 0 )
|
||||
);
|
||||
}
|
||||
else {
|
||||
justAddFormula( (Formula) keyDescriptor.getColumn() );
|
||||
|
|
Loading…
Reference in New Issue