AnyMetaDef (Hibernate JavaDocs)
Date: 2012-04-05

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.hibernate.annotations
Annotation Type AnyMetaDef

    @Target(value={PACKAGE,TYPE,METHOD,FIELD})
    @Retention(value=RUNTIME)
    public @interface AnyMetaDef

Defines @Any and @manyToAny metadata

Required Element Summary
`String` | `idType` Hibernate type of the id column
`String` | `metaType` meta discriminator Hibernate type
`MetaValue[]` | `metaValues` Matching discriminator values with their respective entity

Optional Element Summary
`String` | `name` If defined, assign a global meta definition name to be used in an @Any or @ManyToAny annotation If not defined, the metadata applies to the current property or field

Element Detail

### metaType

    public abstract String metaType

  meta discriminator Hibernate type

### idType

    public abstract String idType

  Hibernate type of the id column

  Returns:
    Hibernate type of the id column

### metaValues

    public abstract MetaValue[] metaValues

  Matching discriminator values with their respective entity

### name

    public abstract String name

  If defined, assign a global meta definition name to be used in an @Any or @ManyToAny annotation If not defined, the metadata applies to the current property or field

  Default:
    ""

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.