com.agimatec.annotations
Annotation Type DTOAttribute


@Retention(value=SOURCE)
@Target(value={FIELD,METHOD})
public @interface DTOAttribute


Optional Element Summary
 String addMethod
          iterate-type setter method
 String converter
          for dozer-mapping: name of a Class
 boolean copyByReference
          for dozer-mapping: true when call-by-reference
 boolean oneWay
          for dozer-mapping: true when one-way (from annotated to generated)
 String path
          Reflector.path to take the attribute of the pojo FROM
 String property
          name of the pojo.property to write the value TO
 String type
          the type of the property, default is the same type as origin's
 String usage
          reference to DTO.usage (when multiple DTO annotations exist per class)
 

usage

public abstract String usage
reference to DTO.usage (when multiple DTO annotations exist per class)

Default:
""

path

public abstract String path
Reflector.path to take the attribute of the pojo FROM

Default:
""

property

public abstract String property
name of the pojo.property to write the value TO

Default:
""

converter

public abstract String converter
for dozer-mapping: name of a Class

Default:
""

copyByReference

public abstract boolean copyByReference
for dozer-mapping: true when call-by-reference

Default:
false

oneWay

public abstract boolean oneWay
for dozer-mapping: true when one-way (from annotated to generated)

Default:
false

type

public abstract String type
the type of the property, default is the same type as origin's

Default:
""

addMethod

public abstract String addMethod
iterate-type setter method

Default:
""


Copyright © 2008-2012. All Rights Reserved.