2017-08-09 32 views
0

在Springboot爲自動增量我嘗試使用這個鏈接(CustomSequences)做自動增量在春季啓動Web應用程序:無法設置MongoDB中使用Hibernate

How can we create Auto generated field for mongodb using spring boot

,但我得到這個錯誤信息:

enter image description here

我做了一些研究,發現這個問題已經爲這個網頁鏈接: Spring data mongodb field auto increment

請讓我知道我是否可以使用Hibernate在MongoDB中自動增量。

在此先感謝。

回答

1

Hibernate不適用於MongoDB,它只適用於基於SQL的數據庫。您需要使用類似Spring Data MongoDB的東西才能使其工作。