2
我在我的項目中使用postgres數據庫和spring的hibernate。Hibernate實體中的Postgres數組
我只是想從數據庫,其中有數組類型列本身的表中的一些DATAS。
雖然我從表中獲取我收到以下錯誤。
ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: relation "reconcileprocess_bankstmtid" does not exist
表結構如下該表
@Entity
@Table(name = "reconcile_process")
public class ReconcileProcess implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "id")
Long id;
@Column(name = "comments")
String comments;
@Column(name = "fk_last_modified_by")
Long lastModifiedBy;
@Column(name = "last_modified_date")
Date lastModifiedDate;
@Column(name = "fk_transaction_ref")
String transactionRef;
@Column(name = "fk_remittance_transaction_fkey")
String remitTransactionRef;
@Column(name = "process_type")
String processType;
@Column(name = "reconcilled_date")
Date reconcilledDate;
@ElementCollection
@Column(name = "fk_bank_stmt_id")
List<Long> bankStmtId;