You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by bo...@apache.org on 2026/06/25 18:04:39 UTC

(grails-core) branch fix/h7-hide-native-sql-method-names created (now 5b6d775a84)

This is an automated email from the ASF dual-hosted git repository.

borinquenkid pushed a change to branch fix/h7-hide-native-sql-method-names
in repository https://gitbox.apache.org/repos/asf/grails-core.git


      at 5b6d775a84 fix: align H7 HibernateGormStaticApi internal SQL method names with H5

This branch includes the following new commits:

     new 5b6d775a84 fix: align H7 HibernateGormStaticApi internal SQL method names with H5

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(grails-core) 01/01: fix: align H7 HibernateGormStaticApi internal SQL method names with H5

Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

borinquenkid pushed a commit to branch fix/h7-hide-native-sql-method-names
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 5b6d775a849afc59227c55d6d692ca77ff88a2e1
Author: Walter Duque de Estrada <wb...@mac.com>
AuthorDate: Thu Jun 25 11:54:09 2026 -0500

    fix: align H7 HibernateGormStaticApi internal SQL method names with H5
    
    Rename findWithNativeSql/findAllWithNativeSql to findWithSql/findAllWithSql
    in HibernateGormStaticApi so the Native suffix is not visible outside the
    implementation. HibernateEntity already exposes the correct public names;
    only the internal delegation calls are updated.
    
    Co-Authored-By: Claude Sonnet 4.6 <no...@anthropic.com>
---
 .../src/main/groovy/grails/gorm/hibernate/HibernateEntity.groovy  | 8 ++++----
 .../groovy/org/grails/orm/hibernate/HibernateGormStaticApi.groovy | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/grails-data-hibernate7/core/src/main/groovy/grails/gorm/hibernate/HibernateEntity.groovy b/grails-data-hibernate7/core/src/main/groovy/grails/gorm/hibernate/HibernateEntity.groovy
index edcdca57b8..66ddef4beb 100644
--- a/grails-data-hibernate7/core/src/main/groovy/grails/gorm/hibernate/HibernateEntity.groovy
+++ b/grails-data-hibernate7/core/src/main/groovy/grails/gorm/hibernate/HibernateEntity.groovy
@@ -49,7 +49,7 @@ trait HibernateEntity<D> extends GormEntity<D> {
      */
     @Generated
     static List<D> findAllWithSql(CharSequence sql) {
-        currentHibernateStaticApi().findAllWithNativeSql(sql, Collections.emptyMap())
+        currentHibernateStaticApi().findAllWithSql(sql, Collections.emptyMap())
     }
 
     /**
@@ -61,7 +61,7 @@ trait HibernateEntity<D> extends GormEntity<D> {
      */
     @Generated
     static D findWithSql(CharSequence sql) {
-        currentHibernateStaticApi().findWithNativeSql(sql, Collections.emptyMap())
+        currentHibernateStaticApi().findWithSql(sql, Collections.emptyMap())
     }
 
     /**
@@ -74,7 +74,7 @@ trait HibernateEntity<D> extends GormEntity<D> {
      */
     @Generated
     static List<D> findAllWithSql(CharSequence sql, Map args) {
-        currentHibernateStaticApi().findAllWithNativeSql(sql, args)
+        currentHibernateStaticApi().findAllWithSql(sql, args)
     }
 
     /**
@@ -87,7 +87,7 @@ trait HibernateEntity<D> extends GormEntity<D> {
      */
     @Generated
     static D findWithSql(CharSequence sql, Map args) {
-        currentHibernateStaticApi().findWithNativeSql(sql, args)
+        currentHibernateStaticApi().findWithSql(sql, args)
     }
 
     @Generated
diff --git a/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/HibernateGormStaticApi.groovy b/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/HibernateGormStaticApi.groovy
index b77b7e39c4..d46ba7b9e3 100644
--- a/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/HibernateGormStaticApi.groovy
+++ b/grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/HibernateGormStaticApi.groovy
@@ -275,11 +275,11 @@ class HibernateGormStaticApi<D> extends GormStaticApi<D> {
         doListInternal(query, namedParams, [], args, false)
     }
 
-    D findWithNativeSql(CharSequence sql, Map args = Collections.emptyMap()) {
+    D findWithSql(CharSequence sql, Map args = Collections.emptyMap()) {
         doSingleInternal(sql, [:], [], args, true) as D
     }
 
-    List<D> findAllWithNativeSql(CharSequence query, Map args = Collections.emptyMap()) {
+    List<D> findAllWithSql(CharSequence query, Map args = Collections.emptyMap()) {
         doListInternal(query, [:], [], args, true)
     }