Jan 28th, 2011, 07:25 AM
ROO - Domain Builder
Has anyone had success in applying ROO as a rapid reusable domain model builder ?
- Generate the domain model, complete with JPA and JSR-303.
- Package as a jar, available to other projects.
1 - Either push in all aspects implementation OR include support libraries.
2 - Persistence.xml would have to be removed, with JPA annotations still supported.. (?) JPA manager / DB config would reside in an application (webservice / web app / batch app) deployment project.
Any thoughts on this ? ROO is great for rapid development, this could make it even more portable / usable outside of the CRUD space.
Jan 28th, 2011, 07:55 AM
Create your domain model using Roo... Exit Roo
Then execute a mvn assembly:assembly command. That will produce 2 jar files, with pretty much what you want.
Hope helps you