|
|
- package com.whn.hellospring.model;
-
- import lombok.*;
- import org.hibernate.annotations.Type;
- import org.joda.money.Money;
-
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.Table;
- import java.io.Serializable;
-
- @Entity
- @Table(name = "T_MENU_COFFEE")
- @Builder
- @Data
- @ToString(callSuper = true)
- @NoArgsConstructor
- @AllArgsConstructor
- public class MenuCoffeeDO extends BaseEntity implements Serializable {
- private Long menu_id_fk;
-
- private String name;
-
- @Column
- @Type(type = "org.jadira.usertype.moneyandcurrency.joda.PersistentMoneyAmount",
- parameters = {@org.hibernate.annotations.Parameter(name = "currencyCode", value = "CNY")})
- private Money price;
-
-
- }
-
|