/** @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; }
@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; }
@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;}
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 ); } } }
@JoinColumn(nullable = false) @ManyToOne(fetch = FetchType.LAZY) @Index(name = "bundleIndex") public LanguageBundle getBundle() { return bundle; }
public static FetchMode getFetchMode(FetchType fetch) { if ( fetch == FetchType.EAGER ) { return FetchMode.JOIN; } else { return FetchMode.SELECT; } }
@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; }
/** * 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; }
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "customerNumber", nullable = false, insertable = false, updatable = false) @JsonIgnore public Customer getCustomer() { return this.customer; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "dictType") public Set<DictInfo> getDictInfos() { return this.dictInfos; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "accountInfo") public Set<AccountAvatar> getAccountAvatars() { return this.accountAvatars; }
/** * @return the phoneRelationss */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "phoneBasicInfo") @OrderBy("id") public List<PhoneRelations> getPhoneRelationss() { return phoneRelationss; }
@ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "office_id") public QOffice getOffice() { return office; }
/** @return null. */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "TYPE_ID") public UserAccountType getUserAccountType() { return this.userAccountType; }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="company") public Set<Department> getDepartments() { return this.departments; }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.EAGER, mappedBy="company") public Set<Employee> getEmployees() { return this.employees; }
/** @return null. */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "ARTICLE_ID") public CmsArticle getCmsArticle() { return this.cmsArticle; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "javamailMessage") public Set<JavamailAttachment> getJavamailAttachments() { return this.javamailAttachments; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "whitelistApp") public Set<WhitelistInfo> getWhitelistInfos() { return this.whitelistInfos; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "partyStructType") public Set<PartyStructRule> getPartyStructRules() { return this.partyStructRules; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "whitelistType") public Set<WhitelistApp> getWhitelistApps() { return this.whitelistApps; }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="department") public Set<Department> getDepartments() { return this.departments; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "userRepo") public Set<UserBase> getUserBases() { return this.userBases; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "jobLevel") public Set<JobInfo> getJobInfos() { return this.jobInfos; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "jobType") public Set<JobInfo> getJobInfos() { return this.jobInfos; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "plmIssue") public Set<PlmComment> getPlmComments() { return this.plmComments; }
/** @return null. */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "INFO_ID") public TicketInfo getTicketInfo() { return this.ticketInfo; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "ticketCatalog") public Set<TicketInfo> getTicketInfos() { return this.ticketInfos; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "taskDefBase") public Set<TaskDefOperation> getTaskDefOperations() { return this.taskDefOperations; }
/** @return null. */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "APP_ID") public WhitelistApp getWhitelistApp() { return this.whitelistApp; }
/** @return null. */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "SERVICE_ID") public WhitelistService getWhitelistService() { return this.whitelistService; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "whitelistApp") public Set<WhitelistHost> getWhitelistHosts() { return this.whitelistHosts; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "accountCredential") public Set<AccountHistoryCredential> getAccountHistoryCredentials() { return this.accountHistoryCredentials; }
@ManyToMany(fetch=FetchType.LAZY) public Set<Power> getPowerSet() { return powerSet; }
/** @return null. */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "INFO_ID") public DiskInfo getDiskInfo() { return this.diskInfo; }
@ManyToMany(fetch=FetchType.LAZY) public Set<Role> getRoleSet() { return roleSet; }
/** @return 外键,任务定义. */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "BASE_ID") public TaskDefBase getTaskDefBase() { return this.taskDefBase; }
/** @return null. */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "PROCESS_ID") public BpmProcess getBpmProcess() { return this.bpmProcess; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "sendmailTemplate") public Set<SendmailQueue> getSendmailQueues() { return this.sendmailQueues; }
/** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "dictType") public Set<DictSchema> getDictSchemas() { return this.dictSchemas; }