40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import javax.persistence.*;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import static javax.persistence.GenerationType.SEQUENCE;
|
|
|
|
/**
|
|
* class JamPraktek
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "RM_JamPraktek_M")
|
|
public class JamPraktek extends BaseMaster {
|
|
|
|
@NotNull(message = "KdPraktek tidak boleh kosong")
|
|
@Column(name = "KdPraktek", nullable = false, length = 100)
|
|
@Caption(value = "KdPraktek")
|
|
private String kdPraktek;
|
|
|
|
@NotNull(message = "JamPraktek tidak boleh kosong")
|
|
@Column(name = "JamPraktek", nullable = false, length = 100)
|
|
@Caption(value = "JamPraktek")
|
|
private String jamPraktek;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.jampraktek_m_id_seq")
|
|
@SequenceGenerator(name = "public.jampraktek_m_id_seq", sequenceName = "public.jampraktek_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
} |