Reputation: 4489
Because I have manually tuned my entities and controllers and view, I would like roo to change none of them. Nevertheless I would like roo to keep on scaffolding all new entities. How could I do that
Upvotes: 7
Views: 2487
Reputation: 1929
.aj are automanaged you must put your code in .java and if you need change any method defined in .aj you must copy it in the .java an change it there. STS and roo will delete it automatically from the .aj.
For the second question, yes you can do it. Roo only manage the file views created by him, but only change all tags that have the "z" parameter autogenerated by him. So if you change manually an autogenerated view and you want thar roo does not change it you must put in z parameter an undefined z value, for example (z=-1 or z="user_managed") and roo will not change those tags.
source: http://forum.springsource.org/archive/index.php/t-126182.html
Upvotes: 0
Reputation: 3080
You can modify the @RooWebScaffold annotation in your entity by adding update=false attribute for it.
@RooWebScaffold(path = "<yourpath>", formBackingObject = <YourClass>.class, update=false)
This tells Roo not to scaffold and update views for the generated entity.
Cheers!!!
Upvotes: 8
Reputation: 4177
Remove @RooEntity annotation from your entities and you should be good.
Hope that helps.
Upvotes: 0