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

borinquenkid pushed a commit to branch 8.0.x-hibernate7
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 5bb99232111afafa46ed2ab8111e7e917252f8c3
Author: Walter Duque de Estrada <[email protected]>
AuthorDate: Thu Jun 18 17:58:14 2026 -0500

    Move setKeys/keys(List) methods below existing key/column methods in 
JoinTable
    
    Keeps field declarations at the top and groups new methods after existing 
methods
    rather than before them, preserving the original ordering convention.
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 .../org/grails/orm/hibernate/cfg/JoinTable.groovy  | 28 +++++++++++-----------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git 
a/grails-data-hibernate5/core/src/main/groovy/org/grails/orm/hibernate/cfg/JoinTable.groovy
 
b/grails-data-hibernate5/core/src/main/groovy/org/grails/orm/hibernate/cfg/JoinTable.groovy
index d471e09bfd..09356edbfc 100644
--- 
a/grails-data-hibernate5/core/src/main/groovy/org/grails/orm/hibernate/cfg/JoinTable.groovy
+++ 
b/grails-data-hibernate5/core/src/main/groovy/org/grails/orm/hibernate/cfg/JoinTable.groovy
@@ -45,20 +45,6 @@ class JoinTable extends Table {
      */
     ColumnConfig column
 
-    void setKeys(List<ColumnConfig> keys) {
-        this.keys = keys
-    }
-
-    /**
-     * Configures the keys
-     * @param names The key names
-     * @return This join table config
-     */
-    JoinTable keys(List names) {
-        this.keys = (List<ColumnConfig>) names.collect { it instanceof 
ColumnConfig ? it : new ColumnConfig(name: it.toString()) }
-        return this
-    }
-
     /**
      * Configures the column
      * @param columnConfig The column config
@@ -97,4 +83,18 @@ class JoinTable extends Table {
         column = new ColumnConfig(name: columnName)
         return this
     }
+
+    void setKeys(List<ColumnConfig> keys) {
+        this.keys = keys
+    }
+
+    /**
+     * Configures the keys
+     * @param names The key names
+     * @return This join table config
+     */
+    JoinTable keys(List names) {
+        this.keys = (List<ColumnConfig>) names.collect { it instanceof 
ColumnConfig ? it : new ColumnConfig(name: it.toString()) }
+        return this
+    }
 }

Reply via email to