Menu

#2 added or managed area for JoinColumn

v1.0 (example)
open
Join (1)
9
2018-02-16
2018-02-16
No

Minute Project generate:

@ManyToOne (fetch=FetchType.LAZY , optional=false)
    @JoinColumn(name="AttributecategoryID", referencedColumnName = "AttributecategoryID" , nullable=false , unique=false , insertable=true, updatable=true)
    private Attributecategory attributecategoryid;

What i want:

@ManyToOne (fetch=FetchType.LAZY , optional=false)
**@JoinFetch(JoinFetchType.OUTER)**
    @JoinColumn(name="AttributecategoryID", referencedColumnName = "AttributecategoryID" , nullable=false , unique=false , insertable=true, updatable=true)
    private Attributecategory attributecategoryid;

Why can't I define a added area for the joins colums ?

Otherwise every join make a new SQL request. With the Parameter "JOINFETCH" , jpa make a better performance sql with JOINS

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.