@Entity public class Soup extends Product
class for a sibling example of overriding the discriminator value.
Modifier and Type | Class and Description |
---|---|
static class |
Soup.SoupType |
Modifier and Type | Field and Description |
---|---|
private Date |
expiration |
private Soup.SoupType |
type |
Modifier and Type | Method and Description |
---|---|
Date |
getExpiration() |
String |
getName() |
Soup.SoupType |
getSoupType() |
void |
setExpiration(Date expiration) |
void |
setSoupType(Soup.SoupType type) |
String |
toString() |
private Soup.SoupType type
private Date expiration
public Date getExpiration()
public void setExpiration(Date expiration)
public Soup.SoupType getSoupType()
public void setSoupType(Soup.SoupType type)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.