@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Mutator
Marks a specific method as a mutator of a database field. This annotation can also be (and usually is) used to manually specify a field name which corresponds to a method; as in the following example:
public Company extends Entity { // ... @Mutator("url") public void setURL(URL url); // ... }
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |
Copyright © 2007-2018. All Rights Reserved.