HHH-14305 Reduce memory consumption of AbstractEntityPersister#attributeDefinitions
This commit is contained in:
parent
e9278288a7
commit
169a01857c
|
@ -5950,9 +5950,8 @@ public abstract class AbstractEntityPersister
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
this.attributeDefinitions = Collections.unmodifiableList(
|
this.attributeDefinitions = CollectionHelper.toSmallList( new ArrayList<>( attributeDefinitionsByName.values() ) );
|
||||||
new ArrayList<>( attributeDefinitionsByName.values() )
|
|
||||||
);
|
|
||||||
// // todo : leverage the attribute definitions housed on EntityMetamodel
|
// // todo : leverage the attribute definitions housed on EntityMetamodel
|
||||||
// // for that to work, we'd have to be able to walk our super entity persister(s)
|
// // for that to work, we'd have to be able to walk our super entity persister(s)
|
||||||
// this.attributeDefinitions = new Iterable<AttributeDefinition>() {
|
// this.attributeDefinitions = new Iterable<AttributeDefinition>() {
|
||||||
|
|
Loading…
Reference in New Issue