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,18 +2025,15 @@ public abstract class AbstractEntityPersister
|
|||
}
|
||||
|
||||
private boolean isSelectable(FetchParent fetchParent, Fetchable fetchable) {
|
||||
if ( fetchable instanceof AttributeMapping ) {
|
||||
if ( fetchParent instanceof EmbeddableResultGraphNode
|
||||
&& ( (EmbeddableResultGraphNode) fetchParent).getReferencedMappingContainer() == getIdentifierMapping() ) {
|
||||
if ( fetchParent instanceof EmbeddableResultGraphNode ) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
else if ( fetchable instanceof AttributeMapping ) {
|
||||
final int propertyNumber = ( (AttributeMapping) fetchable ).getStateArrayPosition();
|
||||
// final int tableNumber = getSubclassPropertyTableNumber( propertyNumber );
|
||||
// return !isSubclassTableSequentialSelect( tableNumber ) && propertySelectable[propertyNumber];
|
||||
return propertySelectable[propertyNumber];
|
||||
}
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue