HHH-15658 Embeddable with more fields than the parent fails with Index out of Bounds
This commit is contained in:
parent
255cf3e301
commit
838cbb81ca
|
@ -2025,17 +2025,14 @@ public abstract class AbstractEntityPersister
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isSelectable(FetchParent fetchParent, Fetchable fetchable) {
|
private boolean isSelectable(FetchParent fetchParent, Fetchable fetchable) {
|
||||||
if ( fetchable instanceof AttributeMapping ) {
|
if ( fetchParent instanceof EmbeddableResultGraphNode ) {
|
||||||
if ( fetchParent instanceof EmbeddableResultGraphNode
|
return true;
|
||||||
&& ( (EmbeddableResultGraphNode) fetchParent).getReferencedMappingContainer() == getIdentifierMapping() ) {
|
}
|
||||||
return true;
|
else if ( fetchable instanceof AttributeMapping ) {
|
||||||
}
|
final int propertyNumber = ( (AttributeMapping) fetchable ).getStateArrayPosition();
|
||||||
else {
|
|
||||||
final int propertyNumber = ( (AttributeMapping) fetchable).getStateArrayPosition();
|
|
||||||
// final int tableNumber = getSubclassPropertyTableNumber( propertyNumber );
|
// final int tableNumber = getSubclassPropertyTableNumber( propertyNumber );
|
||||||
// return !isSubclassTableSequentialSelect( tableNumber ) && propertySelectable[propertyNumber];
|
// return !isSubclassTableSequentialSelect( tableNumber ) && propertySelectable[propertyNumber];
|
||||||
return propertySelectable[propertyNumber];
|
return propertySelectable[propertyNumber];
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue