类javax.persistence.OneToMany源码实例Demo

下面列出了怎么用javax.persistence.OneToMany的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: cia   文件: PersonDetailData.java
/**
* Gets the detail list.
*
* @return the detail list
*/
  @OneToMany(targetEntity = DetailData.class, cascade = {
      CascadeType.ALL
  })
  @JoinColumn(name = "DETAIL_LIST_PERSON_DETAIL_DA_0")
  public List<DetailData> getDetailList() {
      return this.detailList;
  }
 
源代码2 项目: projectforge-webapp   文件: AuftragDO.java
/**
 * Get the position entries for this object.
 */
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "auftrag")
@IndexColumn(name = "number", base = 1)
public List<AuftragsPositionDO> getPositionen()
{
  return this.positionen;
}
 
源代码3 项目: juddi   文件: ReplicationConfiguration.java
@OneToMany(targetEntity = ControlMessage.class, fetch = FetchType.LAZY, cascade = CascadeType.ALL)
public List<ControlMessage> getControlMessage() {
        if (controlledMessage == null) {
                controlledMessage = new ArrayList<ControlMessage>();
        }
        return this.controlledMessage;
}
 
源代码4 项目: cia   文件: DocumentAttachmentContainer.java
/**
* Gets the document attachment list.
*
* @return the document attachment list
*/
  @OneToMany(targetEntity = DocumentAttachment.class, cascade = {
      CascadeType.ALL
  })
  @JoinColumn(name = "DOCUMENT_ATTACHMENT_LIST_DOC_0")
  public List<DocumentAttachment> getDocumentAttachmentList() {
      return this.documentAttachmentList;
  }
 
源代码5 项目: jkes   文件: EventSupport.java
private CascadeType[] getCascadeTypes(AccessibleObject accessibleObject) {
    CascadeType[] cascadeTypes = null;
    if(accessibleObject.isAnnotationPresent(OneToMany.class)) {
        cascadeTypes = accessibleObject.getAnnotation(OneToMany.class).cascade();
    }else if(accessibleObject.isAnnotationPresent(ManyToOne.class)) {
        cascadeTypes = accessibleObject.getAnnotation(ManyToOne.class).cascade();
    }else if(accessibleObject.isAnnotationPresent(ManyToMany.class)) {
        cascadeTypes = accessibleObject.getAnnotation(ManyToMany.class).cascade();
    }
    return cascadeTypes;
}
 
源代码6 项目: ankush   文件: Node.java
/**
 * @return the configuration
 */
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
@JoinColumns({
		@JoinColumn(name = "clusterId", referencedColumnName = "clusterId"),
		@JoinColumn(name = "host", referencedColumnName = "publicIp") })
public List<Configuration> getConfiguration() {
	return configuration;
}
 
源代码7 项目: ankush   文件: Node.java
/**
 * @return the configuration
 */
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
@JoinColumns({
		@JoinColumn(name = "clusterId", referencedColumnName = "clusterId"),
		@JoinColumn(name = "host", referencedColumnName = "publicIp") })
public List<Event> getEvents() {
	return events;
}
 
源代码8 项目: hyperjaxb3   文件: A.java
@OneToMany(cascade = CascadeType.ALL)
public List<EItem> getEItems() {
	if (eItems == null) {
		eItems = new ArrayList<EItem>();
	}
	if (ItemUtils.shouldBeWrapped(e))
		e = ItemUtils.wrap(e, eItems, EItem.class);
	return this.eItems;
}
 
源代码9 项目: scheduling   文件: TaskData.java
@Cascade(CascadeType.ALL)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
@OrderColumn(name = "SCRIPT_ORDER")
public List<SelectionScriptData> getSelectionScripts() {
    return selectionScripts;
}
 
源代码10 项目: Spring-MVC-Blueprints   文件: BillingAddress.java
@OneToMany(fetch = FetchType.LAZY, mappedBy = "billingAddress")
public Set<BillingStatement> getBillingStatements() {
	return this.billingStatements;
}
 
源代码11 项目: lemon   文件: HtHumantask.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "htHumantask")
public Set<HtHumantask> getHtHumantasks() {
    return this.htHumantasks;
}
 
源代码12 项目: Spring-MVC-Blueprints   文件: Tbldepartment.java
@OneToMany(fetch = FetchType.LAZY, mappedBy = "tbldepartment")
public Set<Tblcourses> getTblcourseses() {
	return this.tblcourseses;
}
 
源代码13 项目: juddi   文件: TmodelInstanceInfo.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tmodelInstanceInfo")
@OrderBy
public List<InstanceDetailsDescr> getInstanceDetailsDescrs() {
	return this.instanceDetailsDescrs;
}
 
源代码14 项目: lemon   文件: CmsSite.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "cmsSite")
public Set<CmsCatalog> getCmsCatalogs() {
    return this.cmsCatalogs;
}
 
源代码15 项目: lemon   文件: PartyEntity.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "childEntity")
public Set<PartyStruct> getParentStructs() {
    return this.parentStructs;
}
 
源代码16 项目: lemon   文件: DiskInfo.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "diskInfo")
public Set<DiskShare> getDiskShares() {
    return this.diskShares;
}
 
源代码17 项目: lemon   文件: SendmailTemplate.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "sendmailTemplate")
public Set<SendmailAttachment> getSendmailAttachments() {
    return this.sendmailAttachments;
}
 
源代码18 项目: lemon   文件: SysCategory.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "sysCategory")
public Set<SysEntry> getSysEntries() {
    return this.sysEntries;
}
 
源代码19 项目: lemon   文件: SendmailApp.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "sendmailApp")
public Set<SendmailHistory> getSendmailHistories() {
    return this.sendmailHistories;
}
 
源代码20 项目: Spring-MVC-Blueprints   文件: Trip.java
@JsonBackReference("booked-data")
@OneToMany(fetch = FetchType.LAZY, mappedBy = "trip")
public Set<BookedTrip> getBookedTrips() {
	return this.bookedTrips;
}
 
源代码21 项目: lemon   文件: ModelBase.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "modelBase")
public Set<ModelItem> getModelItems() {
    return this.modelItems;
}
 
源代码22 项目: OA   文件: Document.java
@OneToMany(mappedBy="document",cascade={CascadeType.ALL})
public Set<DocumentProperty> getProps() {
	return props;
}
 
源代码23 项目: lemon   文件: ModelBase.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "modelBase")
public Set<ModelRow> getModelRows() {
    return this.modelRows;
}
 
源代码24 项目: lemon   文件: DiskShare.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "diskShare")
public Set<DiskMember> getDiskMembers() {
    return this.diskMembers;
}
 
源代码25 项目: lemon   文件: TaskInfo.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taskInfo")
public Set<TaskParticipant> getTaskParticipants() {
    return this.taskParticipants;
}
 
源代码26 项目: lemon   文件: PartyStructType.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "partyStructType")
public Set<PartyStruct> getPartyStructs() {
    return this.partyStructs;
}
 
源代码27 项目: lemon   文件: CmsArticle.java
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "cmsArticle")
public Set<CmsTagArticle> getCmsTagArticles() {
    return this.cmsTagArticles;
}
 
源代码28 项目: hrms   文件: RedeployType.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "redeployType")
public Set<EmployeeRedeploy> getEmployeeRedeploys() {
	return employeeRedeploys;
}
 
源代码29 项目: Spring-MVC-Blueprints   文件: Permission.java
@OneToMany(fetch = FetchType.LAZY, mappedBy = "permission")
public Set<RolePermission> getRolePermissions() {
	return this.rolePermissions;
}
 
源代码30 项目: ignite   文件: HibernateL2CacheSelfTest.java
/**
 * @return Children.
 */
@OneToMany(cascade = javax.persistence.CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "ENTITY_ID")
public Collection<ChildEntity> getChildren() {
    return children;
}
 
 类所在包
 类方法
 同包方法