org.hibernate.annotations
Annotation Type SQLUpdate


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

SqlUpdate Annotation for overwriting Hibernate default UPDATE method

Author:
L�szl� Benke

Required Element Summary
 String sql
          Procedure name or UPDATE STATEMENT
 
Optional Element Summary
 boolean callable
          Is the statement using stored procedure or not
 ResultCheckStyle check
          For persistence operation what style of determining results (success/failure) is to be used.
 

Element Detail

sql

public abstract String sql
Procedure name or UPDATE STATEMENT

callable

public abstract boolean callable
Is the statement using stored procedure or not

Default:
false

check

public abstract ResultCheckStyle check
For persistence operation what style of determining results (success/failure) is to be used.

Default:
org.hibernate.annotations.ResultCheckStyle.NONE


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