/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.cascade.multicircle.nonjpa.identity;
import java.util.Set;
/**
* No Documentation
*/
@javax.persistence.Entity
public class EntityC extends AbstractEntity {
private static final long serialVersionUID = 1226955752L;
@javax.persistence.OneToMany(mappedBy = "c")
private Set<EntityB> bCollection = new java.util.HashSet<EntityB>();
@javax.persistence.OneToMany(mappedBy = "c")
@org.hibernate.annotations.Cascade({
org.hibernate.annotations.CascadeType.PERSIST,
org.hibernate.annotations.CascadeType.SAVE_UPDATE,
org.hibernate.annotations.CascadeType.MERGE,
org.hibernate.annotations.CascadeType.REFRESH
})
private Set<EntityD> dCollection = new java.util.HashSet<EntityD>();
public Set<EntityB> getBCollection() {
return bCollection;
}
public void setBCollection(Set<EntityB> bCollection) {
this.bCollection = bCollection;
}
public Set<EntityD> getDCollection() {
return dCollection;
}
public void setDCollection(Set<EntityD> dCollection) {
this.dCollection = dCollection;
}
}