List of usage examples for javax.persistence CascadeType PERSIST
CascadeType PERSIST
To view the source code for javax.persistence CascadeType PERSIST.
Click Source Link
From source file:org.projectforge.business.task.TaskDO.java
/** -> Gantt */ @Deprecated//from www. j a v a 2 s.c o m @ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, targetEntity = TaskDO.class) @JoinColumn(name = "gantt_predecessor_fk") public TaskDO getGanttPredecessor() { return ganttPredecessor; }
From source file:org.projectforge.continuousdb.demo.entities.GroupDO.java
@ManyToMany(targetEntity = UserDO.class, cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER) @JoinTable(name = "T_GROUP_USER", joinColumns = @JoinColumn(name = "GROUP_ID"), inverseJoinColumns = @JoinColumn(name = "USER_ID")) public Set<UserDO> getAssignedUsers() { return assignedUsers; }
From source file:org.projectforge.framework.persistence.user.entities.GroupDO.java
@ManyToMany(targetEntity = org.projectforge.framework.persistence.user.entities.PFUserDO.class, cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER) @JoinTable(name = "T_GROUP_USER", joinColumns = @JoinColumn(name = "GROUP_ID"), inverseJoinColumns = @JoinColumn(name = "USER_ID"), indexes = { @javax.persistence.Index(name = "idx_fk_t_group_user_group_id", columnList = "group_id"), @javax.persistence.Index(name = "idx_fk_t_group_user_user_id", columnList = "user_id") }) public Set<PFUserDO> getAssignedUsers() { return assignedUsers; }
From source file:org.projectforge.user.GroupDO.java
@ManyToMany(targetEntity = org.projectforge.user.PFUserDO.class, cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER) @JoinTable(name = "T_GROUP_USER", joinColumns = @JoinColumn(name = "GROUP_ID"), inverseJoinColumns = @JoinColumn(name = "USER_ID")) public Set<PFUserDO> getAssignedUsers() { return assignedUsers; }
From source file:org.tonguetied.keywordmanagement.Translation.java
@OneToOne(cascade = CascadeType.PERSIST) @JoinColumn(name = "bundle_id") @ForeignKey(name = FK_BUNDLE) public Bundle getBundle() { return bundle; }
From source file:org.tonguetied.keywordmanagement.Translation.java
@OneToOne(cascade = CascadeType.PERSIST) @JoinColumn(name = "country_id") @ForeignKey(name = FK_COUNTRY) public Country getCountry() { return country; }
From source file:org.tonguetied.keywordmanagement.Translation.java
@OneToOne(cascade = CascadeType.PERSIST) @JoinColumn(name = "language_id") @ForeignKey(name = FK_LANGUAGE) public Language getLanguage() { return language; }
From source file:uk.ac.ebi.bioinvindex.model.Study.java
@ManyToMany(targetEntity = User.class, cascade = CascadeType.PERSIST) @PrimaryKeyJoinColumns({ @PrimaryKeyJoinColumn(name = "STUDY_ID", referencedColumnName = "ID"), @PrimaryKeyJoinColumn(name = "USER_ID", referencedColumnName = "ID") }) @JoinTable(name = "Study2User", joinColumns = { @JoinColumn(name = "STUDY_ID") }, inverseJoinColumns = @JoinColumn(name = "USER_ID"), uniqueConstraints = { @UniqueConstraint(columnNames = { "STUDY_ID", "USER_ID" }) }) public Collection<User> getUsers() { return users; }
From source file:uk.co.gidley.zebra.service.om.state.AbstractTaskInstance.java
@ManyToOne(targetEntity = ProcessInstance.class, cascade = { CascadeType.MERGE, CascadeType.PERSIST }) public ProcessInstance getProcessInstance() { return this.processInstance; }
From source file:uk.co.gidley.zebra.service.om.state.AbstractTaskInstance.java
@ManyToOne(targetEntity = FOE.class, cascade = { CascadeType.PERSIST, CascadeType.MERGE }) public IFOE getFOE() { return this.FOE; }