106 lines
2.1 KiB
Plaintext
106 lines
2.1 KiB
Plaintext
package com.healthcare.ohctech.entity;
|
|
|
|
import jakarta.persistence.*;
|
|
import org.hibernate.annotations.UpdateTimestamp;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
@Entity
|
|
@Table(name = "item_rate")
|
|
public class ItemRate {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@Column(name = "item_rate_id")
|
|
private Long id;
|
|
@ManyToOne
|
|
@JoinColumn(name = "tbl_items", referencedColumnName = "item_id")
|
|
private Item item;
|
|
@Column(name = "mrp")
|
|
private Float mrp;
|
|
@Column(name = "discount")
|
|
private Float discount;
|
|
@Column(name = "gst")
|
|
private Float gst;
|
|
@Column(name = "item_rate")
|
|
private Integer itemRate;
|
|
@Column(name = "unit")
|
|
private Integer unit;
|
|
@Column(name = "modified_by")
|
|
private Long modifiedBy;
|
|
@Column(name = "last_modified")
|
|
@UpdateTimestamp
|
|
private LocalDateTime lastModified;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Item getItem() {
|
|
return item;
|
|
}
|
|
|
|
public void setItem(Item item) {
|
|
this.item = item;
|
|
}
|
|
|
|
public Float getMrp() {
|
|
return mrp;
|
|
}
|
|
|
|
public void setMrp(Float mrp) {
|
|
this.mrp = mrp;
|
|
}
|
|
|
|
public Float getDiscount() {
|
|
return discount;
|
|
}
|
|
|
|
public void setDiscount(Float discount) {
|
|
this.discount = discount;
|
|
}
|
|
|
|
public Float getGst() {
|
|
return gst;
|
|
}
|
|
|
|
public void setGst(Float gst) {
|
|
this.gst = gst;
|
|
}
|
|
|
|
public Integer getItemRate() {
|
|
return itemRate;
|
|
}
|
|
|
|
public void setItemRate(Integer itemRate) {
|
|
this.itemRate = itemRate;
|
|
}
|
|
|
|
public Integer getUnit() {
|
|
return unit;
|
|
}
|
|
|
|
public void setUnit(Integer unit) {
|
|
this.unit = unit;
|
|
}
|
|
|
|
public Long getModifiedBy() {
|
|
return modifiedBy;
|
|
}
|
|
|
|
public void setModifiedBy(Long modifiedBy) {
|
|
this.modifiedBy = modifiedBy;
|
|
}
|
|
|
|
public LocalDateTime getLastModified() {
|
|
return lastModified;
|
|
}
|
|
|
|
public void setLastModified(LocalDateTime lastModified) {
|
|
this.lastModified = lastModified;
|
|
}
|
|
}
|