Package myorg.relex.one2many
Class Produce
- java.lang.Object
-
- myorg.relex.one2many.Produce
-
@Embeddable public class Produce extends Object
This class is an example of a non-entity class that will be mapped to a dependent table and form the many side of an @ElementCollection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Produce.Color
-
Constructor Summary
Constructors Constructor Description Produce()
Produce(String name, Produce.Color color, Date expires)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Produce.Color
getColor()
Date
getExpires()
String
getName()
-
-
-
Field Detail
-
name
private String name
-
color
private Produce.Color color
-
expires
private Date expires
-
-
Constructor Detail
-
Produce
public Produce()
-
Produce
public Produce(String name, Produce.Color color, Date expires)
-
-
Method Detail
-
getName
public String getName()
-
getColor
public Produce.Color getColor()
-
getExpires
public Date getExpires()
-
-