Class Soup
- java.lang.Object
-
- ejava.examples.orm.inheritance.annotated.Product
-
- ejava.examples.orm.inheritance.annotated.Soup
-
@Entity public class Soup extends Product
This class provides an example of an entity sub-class that is part of a single table inheritance strategy. The table and primary key generation is being defined by the parent class. This class is accepting all defaults.- See Also:
class for a sibling example of overriding the discriminator value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Soup.SoupType
-
Field Summary
Fields Modifier and Type Field Description private Date
expiration
private Soup.SoupType
type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getExpiration()
String
getName()
Soup.SoupType
getSoupType()
void
setExpiration(Date expiration)
void
setSoupType(Soup.SoupType type)
String
toString()
-
-
-
Field Detail
-
type
private Soup.SoupType type
-
expiration
private Date expiration
-
-
Method Detail
-
getExpiration
public Date getExpiration()
-
setExpiration
public void setExpiration(Date expiration)
-
getSoupType
public Soup.SoupType getSoupType()
-
setSoupType
public void setSoupType(Soup.SoupType type)
-
-