@Entity(name="O2MOwningParent") public class OneManyOwningParent extends Object
Modifier and Type | Field and Description |
---|---|
private Collection<OneManyChild> |
children |
private long |
id |
private String |
name |
Constructor and Description |
---|
OneManyOwningParent() |
OneManyOwningParent(long id) |
OneManyOwningParent(String name) |
Modifier and Type | Method and Description |
---|---|
Collection<OneManyChild> |
getChildren() |
long |
getId() |
String |
getName() |
void |
setChildren(Collection<OneManyChild> children) |
void |
setName(String name) |
String |
toString() |
private long id
private String name
private Collection<OneManyChild> children
public OneManyOwningParent()
public OneManyOwningParent(long id)
public OneManyOwningParent(String name)
public long getId()
public String getName()
public void setName(String name)
public Collection<OneManyChild> getChildren()
public void setChildren(Collection<OneManyChild> children)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.