Top Description Methods
org.hibernate.annotations

public @Interface SQLDelete

extends Annotation
Annotations
@Target:TYPE, FIELD, METHOD
@Retention:RUNTIME
@Repeatable:SQLDeletes
Imports
java.lang.annotation.Repeatable, .Retention, .Target

Specifies a custom SQL DML statement to be used in place of the default SQL generated by Hibernate when an entity or collection row is deleted from the database.

The given SQL statement must have exactly the number of JDBC ? parameters that Hibernate expects, in the exact order Hibernate expects. The primary key columns come before the version column if the entity is versioned.

Author
Laszlo Benke

Method Summary

Modifier and TypeMethod and Description
public boolean
callable()

Is the statement callable (aka a java.sql.CallableStatement)?

public ResultCheckStyle
check()

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

public String
sql()

Procedure name or SQL DELETE statement.

public String

Returns:

the name of the table
table
()

The name of the table in the case of an entity with secondary tables, defaults to the primary table.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

callableback to summary
public boolean callable()

Is the statement callable (aka a java.sql.CallableStatement)?

checkback to summary
public ResultCheckStyle check()

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

sqlback to summary
public String sql()

Procedure name or SQL DELETE statement.

tableback to summary
public String table()

The name of the table in the case of an entity with secondary tables, defaults to the primary table.

Returns:String

the name of the table

Since
6.2