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
 java.lang.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 java.lang.String persister
persister of this entity, default is hibernate internal one

Default:
""

optimisticLock

public abstract OptimisticLockType optimisticLock
optimistic locking strategy

Default:
VERSION