Class EntityWithOneToMany
- java.lang.Object
-
- org.hibernate.testing.orm.domain.gambit.EntityWithOneToMany
-
@Entity public class EntityWithOneToMany extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EntityWithOneToMany()
EntityWithOneToMany(java.lang.Integer id, java.lang.String name, java.lang.Integer someInteger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOther(SimpleEntity other)
java.lang.Integer
getId()
java.lang.String
getName()
java.util.Set<SimpleEntity>
getOthers()
java.util.List<SimpleEntity>
getOthersIdentifierBag()
java.lang.Integer
getSomeInteger()
void
setId(java.lang.Integer id)
void
setName(java.lang.String name)
void
setOthers(java.util.Set<SimpleEntity> others)
void
setOthersIdentifierBag(java.util.List<SimpleEntity> othersIdentifierBag)
void
setSomeInteger(java.lang.Integer someInteger)
-
-
-
Method Detail
-
getId
public java.lang.Integer getId()
-
setId
public void setId(java.lang.Integer id)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getOthers
public java.util.Set<SimpleEntity> getOthers()
-
setOthers
public void setOthers(java.util.Set<SimpleEntity> others)
-
getSomeInteger
public java.lang.Integer getSomeInteger()
-
setSomeInteger
public void setSomeInteger(java.lang.Integer someInteger)
-
addOther
public void addOther(SimpleEntity other)
-
getOthersIdentifierBag
public java.util.List<SimpleEntity> getOthersIdentifierBag()
-
setOthersIdentifierBag
public void setOthersIdentifierBag(java.util.List<SimpleEntity> othersIdentifierBag)
-
-