Annotation Interface SQL
Annotation for defining dynamic SQL queries in OrientDB repositories.
This annotation is used on methods within
OrientDBCrudRepository to execute
custom SQL queries directly on OrientDB.
Example usage:
@SQL("SELECT FROM User WHERE age > :age")
List<User> findUsersByAge(@Param("age") int age);
-
Required Element Summary
Required Elements
-
Element Details
-
value
String valueDefines the SQL query to be executed.- Returns:
- the SQL query string
-