Java 类javax.persistence.FetchType 实例源码

项目:lemon    文件:PlmIssue.java   
/** @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;
}
项目:tianti    文件:Role.java   
@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;
}
项目:aws-photosharing-example    文件:Media.java   
@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;}
项目:lams    文件:JPAOverriddenAnnotationReader.java   
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 );
        }
    }
}
项目:Equella    文件:LanguageString.java   
@JoinColumn(nullable = false)
@ManyToOne(fetch = FetchType.LAZY)
@Index(name = "bundleIndex")
public LanguageBundle getBundle()
{
    return bundle;
}
项目:lams    文件:AnnotationBinder.java   
public static FetchMode getFetchMode(FetchType fetch) {
    if ( fetch == FetchType.EAGER ) {
        return FetchMode.JOIN;
    }
    else {
        return FetchMode.SELECT;
    }
}
项目:tianti    文件:User.java   
@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;
}
项目:java-course    文件:BlogEntry.java   
/**
 * 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;
}
项目:GitHub    文件:Payment.java   
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "customerNumber", nullable = false, insertable = false, updatable = false)
@JsonIgnore
public Customer getCustomer() {
        return this.customer;
}
项目:lemon    文件:DictType.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "dictType")
public Set<DictInfo> getDictInfos() {
    return this.dictInfos;
}
项目:lemon    文件:AccountInfo.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "accountInfo")
public Set<AccountAvatar> getAccountAvatars() {
    return this.accountAvatars;
}
项目:sjk    文件:PhoneBasicInfo.java   
/**
 * @return the phoneRelationss
 */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "phoneBasicInfo")
@OrderBy("id")
public List<PhoneRelations> getPhoneRelationss() {
    return phoneRelationss;
}
项目:sbc-qsystem    文件:QUser.java   
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "office_id")
public QOffice getOffice() {
    return office;
}
项目:lemon    文件:UserAccount.java   
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "TYPE_ID")
public UserAccountType getUserAccountType() {
    return this.userAccountType;
}
项目:DocIT    文件:Company.java   
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="company")
public Set<Department> getDepartments() {
    return this.departments;
}
项目:DocIT    文件:Company.java   
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.EAGER, mappedBy="company")
public Set<Employee> getEmployees() {
    return this.employees;
}
项目:lemon    文件:CmsAttachment.java   
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "ARTICLE_ID")
public CmsArticle getCmsArticle() {
    return this.cmsArticle;
}
项目:lemon    文件:JavamailMessage.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "javamailMessage")
public Set<JavamailAttachment> getJavamailAttachments() {
    return this.javamailAttachments;
}
项目:lemon    文件:WhitelistApp.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "whitelistApp")
public Set<WhitelistInfo> getWhitelistInfos() {
    return this.whitelistInfos;
}
项目:lemon    文件:PartyStructType.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "partyStructType")
public Set<PartyStructRule> getPartyStructRules() {
    return this.partyStructRules;
}
项目:lemon    文件:WhitelistType.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "whitelistType")
public Set<WhitelistApp> getWhitelistApps() {
    return this.whitelistApps;
}
项目:DocIT    文件:Department.java   
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="department")
public Set<Department> getDepartments() {
    return this.departments;
}
项目:lemon    文件:UserRepo.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "userRepo")
public Set<UserBase> getUserBases() {
    return this.userBases;
}
项目:lemon    文件:JobLevel.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "jobLevel")
public Set<JobInfo> getJobInfos() {
    return this.jobInfos;
}
项目:lemon    文件:JobType.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "jobType")
public Set<JobInfo> getJobInfos() {
    return this.jobInfos;
}
项目:lemon    文件:PlmIssue.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "plmIssue")
public Set<PlmComment> getPlmComments() {
    return this.plmComments;
}
项目:lemon    文件:TicketComment.java   
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "INFO_ID")
public TicketInfo getTicketInfo() {
    return this.ticketInfo;
}
项目:lemon    文件:TicketCatalog.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "ticketCatalog")
public Set<TicketInfo> getTicketInfos() {
    return this.ticketInfos;
}
项目:lemon    文件:TaskDefBase.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taskDefBase")
public Set<TaskDefOperation> getTaskDefOperations() {
    return this.taskDefOperations;
}
项目:lemon    文件:WhitelistIp.java   
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "APP_ID")
public WhitelistApp getWhitelistApp() {
    return this.whitelistApp;
}
项目:lemon    文件:WhitelistInfo.java   
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "SERVICE_ID")
public WhitelistService getWhitelistService() {
    return this.whitelistService;
}
项目:lemon    文件:WhitelistApp.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "whitelistApp")
public Set<WhitelistHost> getWhitelistHosts() {
    return this.whitelistHosts;
}
项目:lemon    文件:AccountCredential.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "accountCredential")
public Set<AccountHistoryCredential> getAccountHistoryCredentials() {
    return this.accountHistoryCredentials;
}
项目:hibernateMaster    文件:Role.java   
@ManyToMany(fetch=FetchType.LAZY)
public Set<Power> getPowerSet() {
    return powerSet;
}
项目:lemon    文件:DiskShare.java   
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "INFO_ID")
public DiskInfo getDiskInfo() {
    return this.diskInfo;
}
项目:hibernateMaster    文件:User.java   
@ManyToMany(fetch=FetchType.LAZY)
public Set<Role> getRoleSet() {
    return roleSet;
}
项目:lemon    文件:TaskDefDeadline.java   
/** @return 外键,任务定义. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "BASE_ID")
public TaskDefBase getTaskDefBase() {
    return this.taskDefBase;
}
项目:lemon    文件:BpmTaskDef.java   
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "PROCESS_ID")
public BpmProcess getBpmProcess() {
    return this.bpmProcess;
}
项目:lemon    文件:SendmailTemplate.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "sendmailTemplate")
public Set<SendmailQueue> getSendmailQueues() {
    return this.sendmailQueues;
}
项目:lemon    文件:DictType.java   
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "dictType")
public Set<DictSchema> getDictSchemas() {
    return this.dictSchemas;
}