diff --git a/reference/en/modules/query_sql.xml b/reference/en/modules/query_sql.xml index 3745c28d0c..fdebf89ca9 100644 --- a/reference/en/modules/query_sql.xml +++ b/reference/en/modules/query_sql.xml @@ -237,19 +237,15 @@ BEGIN are not supported. - - TODO: make the "rules" visually nicer and understandable ,) - - - Rules/Limitations for using stored procedures + Rules/limitations for using stored procedures To use stored procedures with Hibernate the procedures have to follow some rules. If they do not follow those rules they are not usable with Hibernate. If you still want to use these procedures you have to execute them via session.connection(). - The rules are different per database since database vendors have different stored procedure - semantics/syntax. + The rules are different for each database, since database vendors have different stored + procedure semantics/syntax. @@ -259,13 +255,13 @@ BEGIN - It must return a result set. This is done by returning a SYS_REFCURSOR in Oracle 9 or 10. - In Oracle you need to define a REF CURSOR type. + The procedure must return a result set. This is done by returning a SYS_REFCURSOR in Oracle 9 + or 10. In Oracle you need to define a REF CURSOR type. - It should be on the form { ? = call procName(<parameters>) } or + Recommended form is { ? = call procName(<parameters>) } or { ? = call procName } (This is more an Oracle rule than a Hibernate rule.) @@ -278,15 +274,15 @@ BEGIN - It must return a result set. Note that since these servers can/will return multiple result - sets and update count Hibernate will iterate the results and take the first result that is - a result set as its return value. Everything else will be discarded. + The procedure must return a result set. Note that since these servers can/will return multiple + result sets and update counts, Hibernate will iterate the results and take the first result that + is a result set as its return value. Everything else will be discarded. - If you can enable SET NOCOUNT ON in your procedure it will probably be the most efficient, but - it is not a requirement. + If you can enable SET NOCOUNT ON in your procedure it will probably be + more efficient, but this is not a requirement.