Too much memory consumption hibernate spatial

Description

District.java

With definition entity with above, every select in hibernate initializes location field even it is a lazy field. Otherwise when hibernate creates an geometry object , number of vertex in geometry data of MCoordinate Object will be created in memory. So this makes memory leaks on server.

To avoid this problem, we tried to use geometry field with lazy fetch type annotations but it did not effect anything, it is still loading geometry data even if not desired.

No I am trying to remove location fields from my entities and only use center of location informations for reducing memory usage.

Is this a bug or somewhat.

Thanks in advance.

Environment

4.1.0.Final Hibernate Version
Oracle 11g

Assignee

Karel Maesen

Reporter

Şaban DEMİRCİ

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure