jTransfo, 0.14

org.jtransfo
Annotation Type DomainClass


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
public @interface DomainClass

Annotation to specify the domain class on the transfer object.


Optional Element Summary
 Class domainClass
          Class for the domain object.
 String value
          Fully qualified class name for the domain object.
 

value

public abstract String value
Fully qualified class name for the domain object.

Using this allows you to avoid a compile dependency on the class name but makes the connection more brittle when refactoring. The value is ignored if domainClass() is set.

Default:
"?"

domainClass

public abstract Class domainClass
Class for the domain object.

This requires a compile dependency on the domain class. The value has precedence over the value() field.

Default:
org.jtransfo.DomainClass.DefaultClass.class

jTransfo, 0.14

Copyright © 2014. All rights reserved.