I have One-To-Many relationship, here is my code
@Entity @Table(name = \"catalog\") public class Catalog { @Id @GeneratedValue(strategy = GenerationType
I think the best solution to your problem (which also is the simplest) is to set your FetchType to LAZY and simply annotate the oneToMany collection fields using @transient. Setting FetchType to EAGER isn't a good idea most times. Best of luck.