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 authorities//from w ww . j a v a 2 s . c om */ @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "client_authority", joinColumns = @JoinColumn(name = "owner_id")) @Override @Convert(converter = SimpleGrantedAuthorityStringConverter.class) @Column(name = "authority") public Set<GrantedAuthority> getAuthorities() { return authorities; }
From source file:org.mitre.oauth2.model.ClientDetailsEntity.java
/** * @return the registeredRedirectUri/* w ww.j av a2s .com*/ */ @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "client_redirect_uri", joinColumns = @JoinColumn(name = "owner_id")) @Column(name = "redirect_uri") public Set<String> getRedirectUris() { return redirectUris; }
From source file:com.hmsinc.epicenter.model.permission.EpiCenterUser.java
/** * @return the roles// w w w . j av a 2s.co m */ @ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER, targetEntity = EpiCenterRole.class) @JoinTable(name = "APP_USER_ROLE", joinColumns = { @JoinColumn(name = "ID_APP_USER") }, inverseJoinColumns = { @JoinColumn(name = "ID_APP_ROLE") }) @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Set<EpiCenterRole> getRoles() { return roles; }
From source file:org.mitre.oauth2.model.ClientDetailsEntity.java
/** * @return the resourceIds/* w ww . j a va 2s . c om*/ */ @Override @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "client_resource", joinColumns = @JoinColumn(name = "owner_id")) @Column(name = "resource_id") public Set<String> getResourceIds() { return resourceIds; }
From source file:edu.ku.brc.specify.datamodel.Attachment.java
@OneToMany(fetch = FetchType.EAGER, mappedBy = "attachment") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<AttachmentMetadata> getMetadata() { return this.metadata; }
From source file:edu.ku.brc.specify.datamodel.Attachment.java
@OneToMany(fetch = FetchType.EAGER, mappedBy = "attachment") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<AttachmentTag> getTags() { return tags; }
From source file:edu.ku.brc.specify.datamodel.WorkbenchRow.java
/** * //w w w. java2s . c o m */ @ManyToOne(cascade = {}, fetch = FetchType.EAGER) @JoinColumn(name = "WorkbenchID", nullable = false) public Workbench getWorkbench() { return workbench; }
From source file:org.mitre.oauth2.model.ClientDetailsEntity.java
@ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "client_contact", joinColumns = @JoinColumn(name = "owner_id")) @Column(name = "contact") public Set<String> getContacts() { return contacts; }
From source file:net.shopxx.entity.Goods.java
@OneToMany(mappedBy = "goods", fetch = FetchType.EAGER, cascade = CascadeType.REMOVE) public Set<Product> getProducts() { return products; }
From source file:edu.harvard.med.screensaver.model.libraries.Library.java
@ManyToOne(fetch = FetchType.EAGER, cascade = { CascadeType.PERSIST, CascadeType.MERGE }) @JoinColumn(name = "ownerScreenerId", nullable = true) @org.hibernate.annotations.ForeignKey(name = "fk_library_to_owner") // @org.hibernate.annotations.LazyToOne(value=org.hibernate.annotations.LazyToOneOption.PROXY) @org.hibernate.annotations.Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE }) public ScreeningRoomUser getOwner() { return _owner; }