Additional persistence layer in roo
I have created a roo project following the typical persistence setup instructions resulting in a Hib开发者_运维知识库ernate and Hypersonic in-memory data layer. I was wondering how it's possible to add another, say Hibernate and PostgreSQL, persistence layer with the ability to switch between both, using one for development and the other for production.
Thanks, Sammy
When Spring 3.1 comes out you will be able to define the beans by region - https://jira.springsource.org/browse/SPR-1876. Investigate using Maven Profiles to assist with switching - http://maven.apache.org/guides/mini/guide-building-for-different-environments.html
Hope this helps. Gordon Dickens twitter.com/gdickens technophileblog.gordondickens.com
精彩评论