敏捷工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
774 B

2 years ago
  1. package com.whn.hellospring.model;
  2. import lombok.*;
  3. import org.hibernate.annotations.CreationTimestamp;
  4. import org.hibernate.annotations.Type;
  5. import org.hibernate.annotations.UpdateTimestamp;
  6. import org.joda.money.Money;
  7. import javax.persistence.*;
  8. import java.io.Serializable;
  9. import java.util.Date;
  10. @Entity
  11. @Table(name = "T_COFFEE")
  12. @Builder
  13. @Data
  14. @ToString(callSuper = true)
  15. @NoArgsConstructor
  16. @AllArgsConstructor
  17. public class CoffeeDO extends BaseEntity implements Serializable {
  18. private Long order_id_fk;
  19. private String name;
  20. @Column
  21. @Type(type = "org.jadira.usertype.moneyandcurrency.joda.PersistentMoneyAmount",
  22. parameters = {@org.hibernate.annotations.Parameter(name = "currencyCode", value = "CNY")})
  23. private Money price;
  24. }