Institute of Electrical & Electronic Engineers
Hibernate is the most popular ORM framework for Java. It is a straight-forward and easy-to-use implementation of Java persistence API. However, its simplicity of usage often becomes mischievous to developers and leads to serious performance issues in Hibernate-based applications. This paper presents five performance anti-patterns related to the usage of one-to-many associations in Hibernate. These anti-patterns focus on the problems of the owning side of collections, the Java types and annotations used in mappings, as well as processing of collections.