org.hibernate.annotations
Annotation Type SQLInsert


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

SqlInsert Annotation for overwriting Hibernate default INSERT INTO method


Required Element Summary
 String sql
          Procedure name or INSERT 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 INSERT 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-2012 Red Hat, Inc. All Rights Reserved.