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 Entity

    @Target(value=TYPE)
    @Retention(value=RUNTIME)
    public @interface Entity

Extends `Entity` with Hibernate features

Author:
  Emmanuel Bernard

Optional Element Summary
`boolean` | `dynamicInsert` Needed column only in SQL on insert
`boolean` | `dynamicUpdate` Needed column only in SQL on update
`boolean` | `mutable` Is this entity mutable (read only) or not
`OptimisticLockType` | `optimisticLock` optimistic locking strategy
`String` | `persister` persister of this entity, default is hibernate internal one
`PolymorphismType` | `polymorphism` polymorphism strategy for this entity
`boolean` | `selectBeforeUpdate` Do a select to retrieve the entity before any potential update

### mutable

    public abstract boolean mutable

  Is this entity mutable (read only) or not

  Default:
    true

### dynamicInsert

    public abstract boolean dynamicInsert

  Needed column only in SQL on insert

  Default:
    false

### dynamicUpdate

    public abstract boolean dynamicUpdate

  Needed column only in SQL on update

  Default:
    false

### selectBeforeUpdate

    public abstract boolean selectBeforeUpdate

  Do a select to retrieve the entity before any potential update

  Default:
    false

### polymorphism

    public abstract PolymorphismType polymorphism

  polymorphism strategy for this entity

  Default:
    IMPLICIT

### persister

    public abstract String persister

  persister of this entity, default is hibernate internal one

  Default:
    ""

### optimisticLock

    public abstract OptimisticLockType optimisticLock

  optimistic locking strategy

  Default:
    VERSION

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