I have a Roo 1.2 maven multi-module project, it has 2 modules: core and web.
The core has a JPA Repository approach with a Service Layer. The reason for that is we need some extra logic in a service layer, besides the basic CRUD.
So we want to create controllers for the services, not for the entities.
However it doesn't seem to be possible in Roo.
I mean, the command doesn't fail:
But it doesn't create the JSPX views, and it doesn't update the ApplicationConversionServiceFactoryBean, and neither it creates aspects for the controller (so the controllers do nothing, since the logic lies in the aspects: _Roo_Controller.aj.
module focus --moduleName multi-web
web mvc setup
web mvc scaffold --class ~.AccountController --backingType cerbero-core|~.service.AccountService --path account
When using an Entity as backing type, everything goes right:
Any suggestion regarding this approach?
web mvc scaffold --class ~.ReservationController --backingType multi-core|~.domain.Reservation --path reservation