mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
native-query callable
This commit is contained in:
parent
dcfb6cdb19
commit
8168b932be
@ -28,7 +28,10 @@
|
||||
@Repeatable(NamedNativeQueries.class)
|
||||
public @interface NamedNativeQuery {
|
||||
/**
|
||||
* The name. It is a named query after all :)
|
||||
* The registration name.
|
||||
*
|
||||
* @see org.hibernate.SessionFactory#addNamedQuery
|
||||
* @see org.hibernate.Session#createNamedQuery
|
||||
*/
|
||||
String name();
|
||||
|
||||
@ -72,11 +75,6 @@
|
||||
*/
|
||||
int timeout() default -1;
|
||||
|
||||
/**
|
||||
* Does the SQL ({@link #query()}) represent a call to a procedure/function?
|
||||
*/
|
||||
boolean callable() default false;
|
||||
|
||||
/**
|
||||
* A comment added to the SQL query. Useful when engaging with DBA.
|
||||
*/
|
||||
@ -98,4 +96,13 @@
|
||||
* @see org.hibernate.query.SynchronizeableQuery
|
||||
*/
|
||||
String[] querySpaces() default {};
|
||||
|
||||
/**
|
||||
* Does the SQL ({@link #query()}) represent a call to a procedure/function?
|
||||
*
|
||||
* @deprecated Calling database procedures and functions through {@link NativeQuery} is
|
||||
* no longer supported; use {@link jakarta.persistence.NamedStoredProcedureQuery} instead
|
||||
*/
|
||||
@Deprecated( since = "6.0" )
|
||||
boolean callable() default false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user