@Entity
public class Product
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Product() |
|
Product(java.lang.String name,
java.math.BigDecimal price) |
Modifier and Type | Method and Description |
---|---|
void |
changePrice(java.math.BigDecimal newPrice) |
java.time.LocalDateTime |
getDateCreated() |
java.lang.Long |
getId() |
java.time.LocalDateTime |
getLastUpdated() |
java.lang.String |
getName() |
java.math.BigDecimal |
getPrice() |
void |
setDateCreated(java.time.LocalDateTime dateCreated) |
void |
setLastUpdated(java.time.LocalDateTime lastUpdated) |
@Creator public Product(java.lang.String name, java.math.BigDecimal price)
protected Product()
public java.lang.Long getId()
public java.lang.String getName()
public java.math.BigDecimal getPrice()
public void setDateCreated(java.time.LocalDateTime dateCreated)
public void setLastUpdated(java.time.LocalDateTime lastUpdated)
public java.time.LocalDateTime getDateCreated()
public java.time.LocalDateTime getLastUpdated()
public void changePrice(java.math.BigDecimal newPrice)