List of usage examples for javax.persistence FetchType EAGER
FetchType EAGER
To view the source code for javax.persistence FetchType EAGER.
Click Source Link
From source file:org.mitre.oauth2.model.ClientDetailsEntity.java
/** * @return the responseTypes/*from w ww .jav a2 s . co m*/ */ @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "client_response_type", joinColumns = @JoinColumn(name = "owner_id")) @Column(name = "response_type") public Set<String> getResponseTypes() { return responseTypes; }
From source file:org.mitre.oauth2.model.ClientDetailsEntity.java
/** * @return the defaultACRvalues// w w w .ja v a2 s. c o m */ @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "client_default_acr_value", joinColumns = @JoinColumn(name = "owner_id")) @Column(name = "default_acr_value") public Set<String> getDefaultACRvalues() { return defaultACRvalues; }
From source file:org.mitre.oauth2.model.ClientDetailsEntity.java
/** * @return the postLogoutRedirectUri/*from ww w.j a v a 2s .c o m*/ */ @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "client_post_logout_redirect_uri", joinColumns = @JoinColumn(name = "owner_id")) @Column(name = "post_logout_redirect_uri") public Set<String> getPostLogoutRedirectUris() { return postLogoutRedirectUris; }
From source file:edu.ku.brc.specify.datamodel.Taxon.java
@ManyToOne(cascade = {}, fetch = FetchType.EAGER) @JoinColumn(name = "TaxonTreeDefItemID", nullable = false) public TaxonTreeDefItem getDefinitionItem() { return this.definitionItem; }
From source file:org.mitre.oauth2.model.ClientDetailsEntity.java
/** * @return the requestUris// w w w .jav a 2s. c o m */ @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "client_request_uri", joinColumns = @JoinColumn(name = "owner_id")) @Column(name = "request_uri") public Set<String> getRequestUris() { return requestUris; }
From source file:org.mitre.oauth2.model.ClientDetailsEntity.java
/** * @return the claimsRedirectUris//from ww w . ja v a2 s .c om */ @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "client_claims_redirect_uri", joinColumns = @JoinColumn(name = "owner_id")) @Column(name = "redirect_uri") public Set<String> getClaimsRedirectUris() { return claimsRedirectUris; }
From source file:edu.duke.cabig.c3pr.domain.Participant.java
@OneToMany(fetch = FetchType.EAGER, orphanRemoval = true) @Cascade(value = { CascadeType.ALL })//from w w w . j a v a 2 s . co m @JoinColumn(name = "participant_id") @Where(clause = "retired_indicator = 'false'") @OrderBy("startDate desc") public Set<Address> getAddresses() { if (this.address != null && !this.address.isBlank() && !addresses.contains(this.address)) { addresses.add(this.address); } return addresses; }
From source file:nl.enovation.addressbook.jpa.pojo.Contact.java
@OneToMany(fetch = FetchType.EAGER, mappedBy = "contact", cascade = CascadeType.ALL, orphanRemoval = true) public Set<PhoneNumberEntry> getPhoneNumbers() { return phoneNumbers; }
From source file:no.abmu.questionnaire.domain.data.QuestionnaireData.java
@ManyToOne(targetEntity = Questionnaire.class, fetch = FetchType.EAGER) @JoinColumn(name = "FK_QUESTIONNAIRE_ID") public Questionnaire getQuestionnaire() { return questionnaire; }
From source file:no.abmu.questionnaire.domain.data.QuestionnaireData.java
/** * getReportDataList./*ww w . j a va2 s .com*/ * * @hibernate.map table="FINANCE_REPORT_DATA_LIST" cascade="all" lazy="false" * @hibernate.key column="FK_SUBREPDATA_ID" * @hibernate.index column="code" type="string" * @hibernate.one-to-many class="no.abmu.finances.domain.SubReportDataList" lazy="false" * @hibernate.cache usage="nonstrict-read-write" * @hibernate.collection-key column="FK_SUBREPDATA_ID" * @hibernate.collection-index column="code" * type="string" * @hibernate.collection-one-to-many class="no.abmu.finances.domain.SubReportDataList" * @ hibernate.collection-cache usage="nonstrict-read-write" */ @OneToMany(targetEntity = SubSchemaDataList.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinTable(name = "QUESTIONNAIRE_SUBSCHEMA_DATA_LIST", schema = DbSchemaNameConst.QUESTIONNAIRE_DB_SCHEMA_NAME) @MapKey(columns = { @Column(name = "key") }, targetElement = String.class) public Map<String, SubSchemaDataList> getSchemaDataListMap() { return schemaDataListMap; }