@@ -0,0 +1,1595 @@
+package com.rizki.mufrizal.belajar.oauth2.domain;%0A%0Aimport com.fasterxml.jackson.annotation.JsonFormat;%0Aimport org.hibernate.annotations.GenericGenerator;%0A%0Aimport javax.persistence.*;%0Aimport java.io.Serializable;%0Aimport java.util.Date;%0A%0A@Entity%0A@Table(name = %22tb_barang%22)%0Apublic class Barang implements Serializable%7B%0A%0A    @Id%0A    @GeneratedValue(generator = %22system-uuid%22)%0A    @GenericGenerator(name = %22system-uuid%22, strategy = %22uuid%22)%0A    @Column(name = %22idBarang%22, length = 150)%0A    private String idBarang;%0A%0A    @Column(name = %22namaBarang%22, length = 30)%0A    private String namaBarang;%0A%0A    @Enumerated(EnumType.STRING)%0A    @Column(name = %22jenisBarang%22, length = 5)%0A    private JenisBarang jenisBarang;%0A%0A    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = %22dd/mm/yyyy%22)%0A    @Temporal(TemporalType.DATE)%0A    @Column(name = %22tanggalKadaluarsa%22)%0A    private Date tanggalKadaluarsa;%0A%0A    public String getIdBarang() %7B%0A        return idBarang;%0A    %7D%0A%0A    public void setIdBarang(String idBarang) %7B%0A        this.idBarang = idBarang;%0A    %7D%0A%0A    public String getNamaBarang() %7B%0A        return namaBarang;%0A    %7D%0A%0A    public void setNamaBarang(String namaBarang) %7B%0A        this.namaBarang = namaBarang;%0A    %7D%0A%0A    public JenisBarang getJenisBarang() %7B%0A        return jenisBarang;%0A    %7D%0A%0A    public void setJenisBarang(JenisBarang jenisBarang) %7B%0A        this.jenisBarang = jenisBarang;%0A    %7D%0A%0A    public Date getTanggalKadaluarsa() %7B%0A        return tanggalKadaluarsa;%0A    %7D%0A%0A    public void setTanggalKadaluarsa(Date tanggalKadaluarsa) %7B%0A        this.tanggalKadaluarsa = tanggalKadaluarsa;%0A    %7D%0A%7D%0A

Add Domain Barang