com.avaje.ebean.annotation
Annotation Type LdapAttribute


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface LdapAttribute

Used to define the mapping of a bean property to an Ldap attribute.

Similar to the JPA Column annotation with LDAP specific features.

Author:
rbygrave

Optional Element Summary
 Class<?> adapter
          Specify a LdapAttributeAdpater which can be used for this specific property to convert between the logical bean property value and the LDAP Attribute value.
 boolean insertable
          Set this to false so the property is not included in an insert.
 String name
          Specify the Attribute name this property maps to.
 boolean updatable
          Set this to false so the property is not included in an update.
 

name

public abstract String name
Specify the Attribute name this property maps to.

Default:
""

adapter

public abstract Class<?> adapter
Specify a LdapAttributeAdpater which can be used for this specific property to convert between the logical bean property value and the LDAP Attribute value.

Default:
void.class

insertable

public abstract boolean insertable
Set this to false so the property is not included in an insert.

Default:
true

updatable

public abstract boolean updatable
Set this to false so the property is not included in an update.

Default:
true


Copyright © 2010. All Rights Reserved.