Skip to content

Commit

Permalink
HHH-19079 org.hibernate.type.ComponentType#getPropertyValues should a…
Browse files Browse the repository at this point in the history
…llocate extra space for discriminator column(s) when input parameter is null and number of discriminator columns greater than zero
  • Loading branch information
cigaly authored and mbladel committed Jan 29, 2025
1 parent cfdaead commit ff8ebd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public Object[] getPropertyValues(Object component, SharedSessionContractImpleme
@Override
public Object[] getPropertyValues(Object component) {
if (component == null) {
return new Object[propertySpan];
return new Object[propertySpan + discriminatorColumnSpan];
}
else if ( component instanceof Object[] ) {
// A few calls to hashCode pass the property values already in an
Expand Down

0 comments on commit ff8ebd5

Please sign in to comment.