List of usage examples for org.hibernate.annotations FetchMode JOIN
FetchMode JOIN
To view the source code for org.hibernate.annotations FetchMode JOIN.
Click Source Link
From source file:com.cubeia.backoffice.users.entity.User.java
License:Open Source License
@Fetch(FetchMode.JOIN) @OneToOne(fetch = FetchType.EAGER, cascade = { CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE }) @JoinColumn(name = "information_fk", nullable = true) public UserInformation getInformation() { return information; }
From source file:com.hmsinc.epicenter.model.analysis.classify.Classifier.java
License:Open Source License
/** * @return the targets/*ww w.j a va 2s. co m*/ */ @Fetch(FetchMode.JOIN) @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER, mappedBy = "classifier") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public List<ClassificationTarget> getTargets() { return targets; }
From source file:com.hmsinc.epicenter.model.analysis.classify.Classifier.java
License:Open Source License
/** * @return the classifications/*w w w .j ava 2s. c o m*/ */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER, mappedBy = "classifier") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) @Fetch(FetchMode.JOIN) @Sort(type = SortType.NATURAL) public SortedSet<Classification> getClassifications() { return classifications; }
From source file:com.sam.moca.job.JobDefinition.java
License:Open Source License
/** * @return Returns the _environment.//from w w w . j a va2 s. c om */ @ElementCollection @JoinTable(name = "job_env_definition", joinColumns = { @JoinColumn(name = "job_id") }) @MapKeyColumn(name = "name") @Column(name = "value") @Fetch(FetchMode.JOIN) public Map<String, String> getEnvironment() { return _environment; }
From source file:com.sam.moca.task.TaskDefinition.java
License:Open Source License
/** * @return Returns the environment.//w ww.j av a2 s . c o m */ @ElementCollection @JoinTable(name = "task_env_definition", joinColumns = { @JoinColumn(name = "task_id") }) @MapKeyColumn(name = "name") @Column(name = "value") @Fetch(FetchMode.JOIN) public Map<String, String> getEnvironment() { return _environment; }
From source file:com.sapienter.jbilling.server.notification.db.NotificationMessageDTO.java
License:Open Source License
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "notificationMessage") @OrderBy(clause = "section") @Fetch(FetchMode.JOIN) @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Set<NotificationMessageSectionDTO> getNotificationMessageSections() { return this.notificationMessageSections; }
From source file:com.sapienter.jbilling.server.notification.db.NotificationMessageSectionDTO.java
License:Open Source License
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "notificationMessageSection") @Fetch(FetchMode.JOIN) @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Set<NotificationMessageLineDTO> getNotificationMessageLines() { return this.notificationMessageLines; }
From source file:com.yewell.assessment.entities.Company.java
@OneToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @Fetch(FetchMode.JOIN) public Address getAddress() { return address; }
From source file:com.yewell.assessment.entities.Company.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY) @Fetch(FetchMode.JOIN) public List<Telephone> getTelephones() { return telephones; }
From source file:com.zl.bgec.basicapi.shop.po.Shop.java
@ManyToOne(targetEntity = ShopType.class) @Fetch(FetchMode.JOIN) @JoinColumn(name = "shop_type_no", referencedColumnName = "shop_type_no", insertable = false, updatable = false) public ShopType getShopType() { return shopType; }