borinquenkid commented on code in PR #15768:
URL: https://github.com/apache/grails-core/pull/15768#discussion_r3482900257


##########
grails-data-hibernate7/docs/src/docs/asciidoc/querying/nativeSql.adoc:
##########
@@ -18,41 +18,41 @@ under the License.
 ////
 
 [[querying-native-sql]]
-== Native SQL Queries
+== SQL Queries
 
-GORM provides `findWithNativeSql` and `findAllWithNativeSql` for executing raw 
SQL when HQL or the Criteria API cannot express the query you need (e.g. 
database-specific functions, complex joins, or legacy SQL).
+GORM provides `findWithSql` and `findAllWithSql` for executing raw SQL when 
HQL or the Criteria API cannot express the query you need (e.g. 
database-specific functions, complex joins, or legacy SQL).
 
-WARNING: Native SQL bypasses Hibernate's type system and object mapping. 
Prefer HQL, the Criteria API, or dynamic finders wherever possible. Use native 
SQL only when there is no higher-level alternative.
+WARNING: Raw SQL bypasses Hibernate's type system and object mapping. Prefer 
HQL, the Criteria API, or dynamic finders wherever possible. Use SQL only when 
there is no higher-level alternative.

Review Comment:
   I agree, we dont use JPA Criteria , we use GORM DetachedCriteria



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to