jTransfo, 0.10

org.jtransfo
Annotation Type MapOnly


@Retention(value=RUNTIME)
@Target(value=FIELD)
@Documented
public @interface MapOnly

Annotation which allows security filtering on jTransfo field behaviour. If a field has a MapOnly of MapOnlies annotation then the field will only be copied when one of the tags in the MapOnly or MapOnlies annotation is present.

By default fields are mapped in both directions between fields of the same name.


Required Element Summary
 String[] value
          Tags for which this annotation applies.
 
Optional Element Summary
 boolean readOnly
          When set, the field will not be written in the domain class when the tag is present.
 String typeConverter
          Fully qualified class name for the type converter.
 Class typeConverterClass
          Class to use for type conversion.
 

Element Detail

value

public abstract String[] value
Tags for which this annotation applies.

readOnly

public abstract boolean readOnly
When set, the field will not be written in the domain class when the tag is present.

Default:
false

typeConverter

public abstract String typeConverter
Fully qualified class name for the type converter.

Using this allows you to override the type converter on the MappedBy annotation.

Default:
"?"

typeConverterClass

public abstract Class typeConverterClass
Class to use for type conversion.

Using this allows you to override the type converter on the MappedBy annotation.

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

Default:
org.jtransfo.MappedBy.DefaultTypeConverter.class

jTransfo, 0.10

Copyright © 2013. All rights reserved.