@Target(value={METHOD,PARAMETER}) @Retention(value=RUNTIME) public @interface Mapping
Example 1:
public String getName();
Example 2:
@Mapping("UPPER(name)")
public String getUpperName();
Example 1 shows a getter which is implicitly mapped to the attribute name which in this case is "name".
Example 2 shows that a mapping can contain arbitrary JPQL expressions.public abstract String value
Copyright © 2015 Blazebit. All Rights Reserved.