You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 22, 2025. It is now read-only.
This project implements [GORM](https://gorm.grails.org) for the Hibernate 6.
3
+
4
+
With the removal of Criterion API in Hibernate 6, we wanted to continue to support the DetachedCriteia in GORM as much as possible. We also wanted to encapsulate the JPA Criteria Building in one class so the following was done:
5
+
* DetachedCriteria holds almost all the state of the Query being built. It hold the target class for the query. It does not hold a session.
6
+
* AbstractHibernateQuery has a session and holds the DetachedCriteria and is a thin wrapper for it. Calling list or singleResult will internally create the Query and execute it.
7
+
* AbstractHibernateCriteriaBuilder is a thin wrapper around AbstractHibernateQuery. Its main function is to use closures to populate the Hibernate Query and execute it at the end of the closure.
8
+
* Only the grails-datastore-gorm-hibernate6 module is being developed at the time.
9
+
10
+
For testing the following was done:
11
+
* Used testcontainers of postgres instead of h2 because h2 does not support all the Java Types correctly.
12
+
* A more opinionated and fluent HibernateGormDatastoreSpec is used for the specifications.
0 commit comments