我正在嘗試在 Hibernate-ogm 中使用 GridFS。這簡直就是我的課import org.hibernate.ogm.datastore.mongodb.type.GridFS;@Embeddablepublic class MyEntity implements Serializable{ private String name; public MyEntity () { } GridFS list;}當我嘗試使該實體持久化時,我在運行時收到標題錯誤。Eclipse IDElist字段顯示“屬性列表在此上下文中具有無效的映射類型”。
1 回答

拉丁的傳說
TA貢獻1789條經驗 獲得超8個贊
目前,GridFS 類型不適用于關聯。您只能將其用作實體的屬性。
這有一個問題:https ://hibernate.atlassian.net/browse/OGM-1553 您還可以在論壇中找到更多信息:https ://discourse.hibernate.org/t/org-hibernate-hibernateexception -ogm000080-不能加載實體批次/2148
添加回答
舉報
0/150
提交
取消