mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-16457 Values returned in ValueAccess.getValues() and getValue(…) not alphabetical for Java records
This commit is contained in:
parent
6e4b5cc0a0
commit
9b85afc88c
@ -772,6 +772,9 @@ private int[] sortProperties(boolean forceRetainOriginalOrder) {
|
||||
private boolean isSimpleRecord() {
|
||||
// A simple record is given, when the properties match the order of the record component names
|
||||
final Class<?> componentClass = resolveComponentClass();
|
||||
if ( customInstantiator != null ) {
|
||||
return false;
|
||||
}
|
||||
if ( componentClass == null || !ReflectHelper.isRecord( componentClass ) ) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user