@java.lang.annotation.Retention(RetentionPolicy.RUNTIME) @java.lang.annotation.Target(ElementType.TYPE) public @interface GeneratedDatabindingWhiteList
The property names Grails put in a class's generated data binding white lists, recorded on the class so that
they are read from the class file once the class is compiled. A subclass in another module, in an application
that uses a plugin, or in an incremental build sees its parent only as bytecode, which has no constraints closure
and no transients list to read, so without this record the subclass would bind what the parent declared
transient or bindable: false, and would not bind what the parent made bindable by constraint.
A record is written with every pair of white list fields. Domain classes and the parameter types of controller
actions get theirs from the injectors that process them; any other class with binding rules, one that declares
constraints or transients, implements grails.validation.Validateable, or extends a class that does, gets
its fields and its record after canonicalization, wherever it is compiled, so that a command object compiled
apart from the controller that binds it keeps its rules.
Written by DefaultASTDatabindingHelper; not meant to be applied by hand.
| Type | Name and Description |
|---|---|
java.lang.String[] |
valueThe names a subclass inherits into its $legacyDatabindingWhiteList, which binds the class's
properties unless constrained bindable: false or transient, without the _* and .*
patterns the generated field adds for non-simple properties. |
| Type | Name and Description |
|---|---|
java.lang.String[] |
denyByDefaultThe names a subclass inherits into its $defaultDatabindingWhiteList, which binds only the properties
constrained bindable: true under grails.databinding.denyByDefault. |
java.lang.String[] |
explicitlyBindableThe special properties, id, version, dateCreated and lastUpdated, that an
explicit bindable: true constraint in the class or its parents makes bindable in a domain class.
|
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The names a subclass inherits into its $defaultDatabindingWhiteList, which binds only the properties
constrained bindable: true under grails.databinding.denyByDefault. Not recorded by Grails 7,
which has no such list: of a class Grails 7 compiled, only the special properties explicitlyBindable()
names are known to belong in it.
The special properties, id, version, dateCreated and lastUpdated, that an
explicit bindable: true constraint in the class or its parents makes bindable in a domain class.
The names a subclass inherits into its $legacyDatabindingWhiteList, which binds the class's
properties unless constrained bindable: false or transient, without the _* and .*
patterns the generated field adds for non-simple properties. A class compiled by Grails 7 records its only
white list, which has the same meaning, here.