How can I make a JPA OneToOne relation lazy

前端 未结 10 1835
暖寄归人
暖寄归人 2020-11-22 03:34

In this application we are developing, we noticed that a view was particularly slow. I profiled the view and noticed that there was one query executed by hibernate which too

10条回答
  •  独厮守ぢ
    2020-11-22 04:24

    If the relation must not be bidirectional then an @ElementCollection might be easier than using a lazy One2Many collection.

提交回复
热议问题