In one of my use cases I see that Hibernate (the latest 4.2 version) creates a lot of Cascade objects. But all methods of the Cascade class can be turned into static methods. And therefore we can avoid creation of Cascade objects at all and reduce the garbage produced by Hibernate.
|