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` Deprecated. use `Immutable`
`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

  Deprecated. use `Immutable`

  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:
    org.hibernate.annotations.PolymorphismType.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:
    org.hibernate.annotations.OptimisticLockType.VERSION

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

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