开发者

I want to disable Roo scaffolding

开发者 https://www.devze.com 2023-03-10 01:29 出处:网络
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

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


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!!!


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

Hope that helps.


.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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号