开发者

How to install JPA persistence provider in spring roo project?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜