@Retention(value=SOURCE) @Target(value=TYPE) public @interface RooWebScaffold
This annotation will cause ROO to produce code that would typically appear in MVC controllers. Importantly, such code does NOT depend on any singletons and is intended to safely serialise. In the current release this code will be emitted to an ITD.
The following functionality will be introduced in the ITD:
formBackingObject() property defines the
persistent type which is exposed through this controllerThere are two cases in which ROO will not emit one or more of the above artifacts:
RooWebScaffold annotation value indicates the desired
output type should not be emitted (all emit by default)| Modifier and Type | Required Element and Description |
|---|---|
Class<?> |
formBackingObject
Every controller is responsible for a single form backing object.
|
String |
path
All view-related artifacts for a specific controller are stored in a
sub-directory under WEB-INF/views/path.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
create
Creates a create() method which allows the creation of a new entity.
|
boolean |
delete
Creates a delete() method which deletes an entity for a given id.
|
boolean |
exposeFinders
Deprecated.
|
boolean |
exposeJson
Deprecated.
|
boolean |
populateMethods
Indicate if Roo should create data population methods used for model
attributes required for the Spring MVC forms.
|
boolean |
update
Creates an update() method which allows alteration of an existing entity.
|
public abstract Class<?> formBackingObject
public abstract String path
public abstract boolean create
public abstract boolean delete
@Deprecated public abstract boolean exposeFinders
RooSearch
instead. (Was: Will scan the formBackingObjects for installed finder
methods and expose them when configured.)@Deprecated public abstract boolean exposeJson
org.springframework.roo.addon.web.mvc.controller.annotations.json.RooWebJson
instead. (Was: Will scan the formBackingObjects for
org.springframework.roo.addon.json.annotations.RooJson annotation and expose json
when configured.)public abstract boolean populateMethods
Copyright © 2009–2018 Pivotal Software, Inc.. All rights reserved.