HHH-16457 Values returned in ValueAccess.getValues() and getValue(…) not alphabetical for Java records
This commit is contained in:
parent
6a9ff46f63
commit
80b32fcd35
|
@ -772,6 +772,9 @@ public class Component extends SimpleValue implements MetaAttributable, Sortable
|
||||||
private boolean isSimpleRecord() {
|
private boolean isSimpleRecord() {
|
||||||
// A simple record is given, when the properties match the order of the record component names
|
// A simple record is given, when the properties match the order of the record component names
|
||||||
final Class<?> componentClass = resolveComponentClass();
|
final Class<?> componentClass = resolveComponentClass();
|
||||||
|
if ( customInstantiator != null ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if ( componentClass == null || !ReflectHelper.isRecord( componentClass ) ) {
|
if ( componentClass == null || !ReflectHelper.isRecord( componentClass ) ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue