Lazy loading does not works for ManyToOne in eclipselink

前端 未结 1 932
挽巷
挽巷 2021-01-06 10:49

Address has many-to-one relationship with person like :

Person :

@Id 
    @Column(name=\"personid\")
    private Long personId;
    private String fi         


        
相关标签:
1条回答
  • 2021-01-06 11:26

    weaving is required for some lazy relationships and enabling other performance enhancements in EclipseLink such as fetch groups and change tracking, as described at http://www.eclipse.org/eclipselink/documentation/2.4/concepts/app_dev007.htm

    Weaving is generally automatic occurs within EE 7 containers, but will require work outside of the container or in non-EE7 containers. So to get lazy to work on 1:1 and M:1, you will need to enable weaving either dynamically through use of an agent, or statically weaving class files and then using those.

    0 讨论(0)
提交回复
热议问题