Код: Выделить всё
@Entity(name = "ITEM_MEDIUM")
@RequiredArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class ItemMedium {
@Id
@JsonProperty("ITEM_MEDIUM_ID")
@GeneratedValue(generator = "ITEM_MEDIUM_SEQ")
@SequenceGenerator(name="ITEM_MEDIUM_SEQ", sequenceName = "ITEM_MEDIUM_SEQ", allocationSize = 1)
private Long itemMediumId;
@JsonProperty("ITEM_ID")
private Long itemId;
@JsonProperty("MEDIUM_ID")
private Long mediumId;
@JsonProperty("ARCHIVE_STATUS")
private String archiveStatus;
@JsonProperty("TYPE")
private String type;
@JsonProperty("STATUS")
private String status;
@JsonProperty("QUANTITY")
private Long quantity;
@JsonProperty("START_CONSUMPTION_DATE")
private Date startConsumptionDate;
@JsonProperty("END_CONSUMPTION_DATE")
private Date endConsumptionDate;
@JsonProperty("CREATE_DATE")
private Date createDate;
@JsonProperty("LAST_MODIFIED")
private Date lastModified;
}
Подробнее здесь: https://stackoverflow.com/questions/783 ... ium-entity