我正试图了解具有以下特征的项目表格的内容(项目_id和中型_id是来自项目和中表的外国钥匙)。
@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;
}
然而,当我试图从存放处获得所有内容时,它不会再回任何东西。 我做了什么错误?