java类javax.persistence.FetchType的实例源码

PlmIssue.java 文件源码 项目:lemon 阅读 85 收藏 0 点赞 0 评论 0
/** @return . */
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "PLM_ISSUE_VERSION", joinColumns = { @JoinColumn(name = "ISSUE_ID", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "VERSION_ID", nullable = false, updatable = false) })
public Set<PlmVersion> getPlmVersions() {
    return this.plmVersions;
}
Role.java 文件源码 项目:tianti 阅读 35 收藏 0 点赞 0 评论 0
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "org_role_resource_rel", 
    joinColumns = {@JoinColumn(name = "role_id")},
    inverseJoinColumns = {@JoinColumn(name = "resources_id")})
public Set<Resource> getResources() {
    return resources;
}
Media.java 文件源码 项目:aws-photosharing-example 阅读 49 收藏 0 点赞 0 评论 0
@ManyToMany(fetch=FetchType.LAZY, cascade=CascadeType.PERSIST)
@JoinTable(name = "album_media", 
           joinColumns = { 
        @JoinColumn(name = "media_id", nullable = false, updatable = false) }, 
inverseJoinColumns = { 
        @JoinColumn(name = "album_id", nullable = false, updatable = false) })    
public List<Album> getAlbums() {return albums;}
JPAOverriddenAnnotationReader.java 文件源码 项目:lams 阅读 36 收藏 0 点赞 0 评论 0
private void getFetchType(AnnotationDescriptor descriptor, Element element) {
    String fetchString = element != null ? element.attributeValue( "fetch" ) : null;
    if ( fetchString != null ) {
        if ( "eager".equalsIgnoreCase( fetchString ) ) {
            descriptor.setValue( "fetch", FetchType.EAGER );
        }
        else if ( "lazy".equalsIgnoreCase( fetchString ) ) {
            descriptor.setValue( "fetch", FetchType.LAZY );
        }
    }
}
LanguageString.java 文件源码 项目:Equella 阅读 49 收藏 0 点赞 0 评论 0
@JoinColumn(nullable = false)
@ManyToOne(fetch = FetchType.LAZY)
@Index(name = "bundleIndex")
public LanguageBundle getBundle()
{
    return bundle;
}
AnnotationBinder.java 文件源码 项目:lams 阅读 38 收藏 0 点赞 0 评论 0
public static FetchMode getFetchMode(FetchType fetch) {
    if ( fetch == FetchType.EAGER ) {
        return FetchMode.JOIN;
    }
    else {
        return FetchMode.SELECT;
    }
}
User.java 文件源码 项目:tianti 阅读 33 收藏 0 点赞 0 评论 0
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "org_user_role_rel", 
        joinColumns = {@JoinColumn(name = "user_id")}, 
        inverseJoinColumns = {@JoinColumn(name = "role_id")})
@Where(clause="delete_flag=0")
@OrderBy("no")
public Set<Role> getRoles() {
    return roles;
}
BlogEntry.java 文件源码 项目:java-course 阅读 36 收藏 0 点赞 0 评论 0
/**
 * Get all comments for current blog entry.
 * 
 * @return List of all comments for current blog entry.
 */
@OneToMany(mappedBy = "blogEntry", fetch = FetchType.LAZY,
        cascade = CascadeType.PERSIST, orphanRemoval = true)
@OrderBy("postedOn")
public List<BlogComment> getComments() {
    return comments;
}
Payment.java 文件源码 项目:GitHub 阅读 37 收藏 0 点赞 0 评论 0
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "customerNumber", nullable = false, insertable = false, updatable = false)
@JsonIgnore
public Customer getCustomer() {
        return this.customer;
}
DictType.java 文件源码 项目:lemon 阅读 41 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "dictType")
public Set<DictInfo> getDictInfos() {
    return this.dictInfos;
}
AccountInfo.java 文件源码 项目:lemon 阅读 41 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "accountInfo")
public Set<AccountAvatar> getAccountAvatars() {
    return this.accountAvatars;
}
PhoneBasicInfo.java 文件源码 项目:sjk 阅读 36 收藏 0 点赞 0 评论 0
/**
 * @return the phoneRelationss
 */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "phoneBasicInfo")
@OrderBy("id")
public List<PhoneRelations> getPhoneRelationss() {
    return phoneRelationss;
}
QUser.java 文件源码 项目:sbc-qsystem 阅读 32 收藏 0 点赞 0 评论 0
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "office_id")
public QOffice getOffice() {
    return office;
}
UserAccount.java 文件源码 项目:lemon 阅读 36 收藏 0 点赞 0 评论 0
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "TYPE_ID")
public UserAccountType getUserAccountType() {
    return this.userAccountType;
}
Company.java 文件源码 项目:DocIT 阅读 37 收藏 0 点赞 0 评论 0
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="company")
public Set<Department> getDepartments() {
    return this.departments;
}
Company.java 文件源码 项目:DocIT 阅读 36 收藏 0 点赞 0 评论 0
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.EAGER, mappedBy="company")
public Set<Employee> getEmployees() {
    return this.employees;
}
CmsAttachment.java 文件源码 项目:lemon 阅读 33 收藏 0 点赞 0 评论 0
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "ARTICLE_ID")
public CmsArticle getCmsArticle() {
    return this.cmsArticle;
}
JavamailMessage.java 文件源码 项目:lemon 阅读 32 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "javamailMessage")
public Set<JavamailAttachment> getJavamailAttachments() {
    return this.javamailAttachments;
}
WhitelistApp.java 文件源码 项目:lemon 阅读 34 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "whitelistApp")
public Set<WhitelistInfo> getWhitelistInfos() {
    return this.whitelistInfos;
}
PartyStructType.java 文件源码 项目:lemon 阅读 36 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "partyStructType")
public Set<PartyStructRule> getPartyStructRules() {
    return this.partyStructRules;
}
WhitelistType.java 文件源码 项目:lemon 阅读 32 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "whitelistType")
public Set<WhitelistApp> getWhitelistApps() {
    return this.whitelistApps;
}
Department.java 文件源码 项目:DocIT 阅读 34 收藏 0 点赞 0 评论 0
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="department")
public Set<Department> getDepartments() {
    return this.departments;
}
UserRepo.java 文件源码 项目:lemon 阅读 32 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "userRepo")
public Set<UserBase> getUserBases() {
    return this.userBases;
}
JobLevel.java 文件源码 项目:lemon 阅读 36 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "jobLevel")
public Set<JobInfo> getJobInfos() {
    return this.jobInfos;
}
JobType.java 文件源码 项目:lemon 阅读 33 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "jobType")
public Set<JobInfo> getJobInfos() {
    return this.jobInfos;
}
PlmIssue.java 文件源码 项目:lemon 阅读 40 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "plmIssue")
public Set<PlmComment> getPlmComments() {
    return this.plmComments;
}
TicketComment.java 文件源码 项目:lemon 阅读 37 收藏 0 点赞 0 评论 0
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "INFO_ID")
public TicketInfo getTicketInfo() {
    return this.ticketInfo;
}
TicketCatalog.java 文件源码 项目:lemon 阅读 38 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "ticketCatalog")
public Set<TicketInfo> getTicketInfos() {
    return this.ticketInfos;
}
TaskDefBase.java 文件源码 项目:lemon 阅读 33 收藏 0 点赞 0 评论 0
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taskDefBase")
public Set<TaskDefOperation> getTaskDefOperations() {
    return this.taskDefOperations;
}
WhitelistIp.java 文件源码 项目:lemon 阅读 31 收藏 0 点赞 0 评论 0
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "APP_ID")
public WhitelistApp getWhitelistApp() {
    return this.whitelistApp;
}


问题


面经


文章

微信
公众号

扫码关注公众号