|
|
- package com.whn.hellospring.model;
-
- import lombok.*;
- import org.hibernate.annotations.CreationTimestamp;
- import org.hibernate.annotations.Type;
- import org.hibernate.annotations.UpdateTimestamp;
- import org.joda.money.Money;
-
- import javax.persistence.*;
- import java.io.Serializable;
- import java.util.Date;
-
- @Entity
- @Table(name = "T_COFFEE")
- @Builder
- @Data
- @ToString(callSuper = true)
- @NoArgsConstructor
- @AllArgsConstructor
- public class CoffeeDO extends BaseEntity implements Serializable {
- private Long order_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;
-
-
- }
-
|