敏捷工具
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.

31 lines
727 B

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