Holger's Java API

## com.antelmann.sql
Annotation Type MappedColumn

    @Retention(value=RUNTIME)
    @Target(value={FIELD,METHOD})
    public @interface MappedColumn

The concept of a MappedColumn is very similar to that of a javax.persistence.Column, but since applications in the need of this concept may not want to compile with J2EE, this Annotation is used instead for `MappedEntry` instances.

Since:
  24.06.2009, 19:11:59
Author:
  Holger Antelmann
See Also:
  `MappedEntry`, `MappedEntryMapper`

Optional Element Summary
`boolean` `readOnly` (optional) if true, this element is only mapped from the database to the java instance, not back.
`String` `stubStringColumn` (optional) specifies the name of the column that holds the reference string if the annotated type is a `Stub`.
`String` `value` (optional) specifies the name of the column.

### value

    public abstract String value

  (optional) specifies the name of the column. If no name is given, the name of the field or method is used. If a method name is used, the name is derived by looking at the bean pattern.

  Default:
    ""

### readOnly

    public abstract boolean readOnly

  (optional) if true, this element is only mapped from the database to the java instance, not back. This is useful to access read-only columns from a query within the java entry.

  Default:
    false

### stubStringColumn

    public abstract String stubStringColumn

  (optional) specifies the name of the column that holds the reference string if the annotated type is a `Stub`. The specified column is implicitly read-only.

  Default:
    ""

(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads