mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 04:34:49 +00:00
HHH-14305 Reduce memory consumption of AbstractEntityPersister#attributeDefinitions
This commit is contained in:
parent
e9278288a7
commit
169a01857c
@ -5950,9 +5950,8 @@ private void collectAttributeDefinitions() {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
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…
x
Reference in New Issue
Block a user