Package ejava.examples.orm.map.annotated
Class ManyManyOwningEntity
- java.lang.Object
-
- ejava.examples.orm.map.annotated.ManyManyOwningEntity
-
@Entity public class ManyManyOwningEntity extends Object
This class represents the owning side of a Many-to-Many, bi-directional and uni-directional relationship. The ManyManyEntity relationship is uni-directional from this entity. The ManyManyInverseEntity relationship is bi-directional, but owned by this entity.
-
-
Field Summary
Fields Modifier and Type Field Description private String
name
private Map<String,ManyManyEntity>
ownedEntities
private Map<String,ManyManyInverseEntity>
ownedInverseEntities
-
Constructor Summary
Constructors Modifier Constructor Description protected
ManyManyOwningEntity()
ManyManyOwningEntity(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Map<String,ManyManyEntity>
getOwnedEntities()
Map<String,ManyManyInverseEntity>
getOwnedInverseEntities()
void
setOwnedEntities(Map<String,ManyManyEntity> ownedEntities)
void
setOwnedInverseEntities(Map<String,ManyManyInverseEntity> ownedInverseEntities)
String
toString()
-
-
-
Field Detail
-
name
private String name
-
ownedEntities
private Map<String,ManyManyEntity> ownedEntities
-
ownedInverseEntities
private Map<String,ManyManyInverseEntity> ownedInverseEntities
-
-
Constructor Detail
-
ManyManyOwningEntity
protected ManyManyOwningEntity()
-
ManyManyOwningEntity
public ManyManyOwningEntity(String name)
-
-
Method Detail
-
getName
public String getName()
-
getOwnedEntities
public Map<String,ManyManyEntity> getOwnedEntities()
-
setOwnedEntities
public void setOwnedEntities(Map<String,ManyManyEntity> ownedEntities)
-
getOwnedInverseEntities
public Map<String,ManyManyInverseEntity> getOwnedInverseEntities()
-
setOwnedInverseEntities
public void setOwnedInverseEntities(Map<String,ManyManyInverseEntity> ownedInverseEntities)
-
-