I want to disable Roo forests

Since I manually configured my entities and controllers and view, I would like roo to not modify any of them. However, I would like the roa to continue to raise new entities. How could i do that

+7
source share
3 answers

You can change the @RooWebScaffold annotation in your entity by adding the attribute update = false for it.

@RooWebScaffold(path = "<yourpath>", formBackingObject = <YourClass>.class, update=false) 

This tells Roo not to sketch and update the views for the generated object.

Hooray!!!

+8
source

Remove the @RooEntity annotation from your entities, and you should be good.

Hope this helps.

0
source

.aj is automated, you have to put your code in .java, and if you need to change any method defined in .aj, you have to copy it in .java change it there. STS and roo will automatically remove it from .aj.

In the second question, yes, you can do it. Roo manages only the file created by it, but only all the tags that have a "z" are changed, a parameter automatically generated by it. Therefore, if you manually change the auto-generated view, and you want roa to not change it, you must enter the z parameter a undefined z value, for example (z = -1 or z = "user_managed"), and roo will not change these tags.

source: http://forum.springsource.org/archive/index.php/t-126182.html

0
source

All Articles