开发者

How to install JPA persistence provider in spring roo project?

开发者 https://www.devze.com 2023-01-08 18:54 出处:网络
I am looking SpringSource Tool Suite with Google Integration and 开发者_如何学CI am getting that hint when I define persistence setup.

I am looking SpringSource Tool Suite with Google Integration and 开发者_如何学CI am getting that hint when I define persistence setup.

hint:"Command 'persistence setup --provider DATANUCLEUS --database HYPERSONIC_IN_MEMORY' was found but is not currently available (type 'help' then ENTER to learn about this command)"...

and help is saying that: * persistence setup - Install or updates a JPA persistence provider in your project

how can I install JPA persistance provider to my project?


Have you tried with another provider? i.e for Hibernate it would be something like:

persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY

I believe you can choose between ECLIPSELINK, HIBERNATE and OPENJPA.


I had a similar problem and I solved it creating the project using Roo instead of the Eclipse ide.

You can do it typing this in the Roo console in Eclipse:

project --topLevelPackage com.company.projectName


Depending on the version of Roo, the keywords have changed. In Spring-Roo version 1.2 and above:

roo> jpa setup --provider ECLIPSELINK --database H2_IN_MEMORY

Earlier versions of the persistence framework configuration use a persistence setup command, which has changed to the newer jpa setup in light of support for configuring non-SQL databases.

0

精彩评论

暂无评论...
验证码 换一张
取 消