This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a change to branch hibernate6
in repository https://gitbox.apache.org/repos/asf/grails-data-hibernate6.git
from 6c47af1a Merge pull request #1 from grails/hibernate6buildUpdates
add b048d0bf more work
add 6be6c3a4 trying to fix edge cases
add cf499cbd implemented tests for what is documented in criteria.adoc
add 36562fdd optimize imports
add 664202b4 more progress
add 22d61598 listDistinct and distinct implemented fixed
add 4f36a88f Update README for PR
new 7a8a3373 Merge pull request #4 from borinquenkid/hibernate6
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.
Summary of changes:
README.md | 10 +
docs/src/docs/asciidoc/querying/criteria.adoc | 160 ++------------
grails-datastore-gorm-hibernate/build.gradle | 6 +-
.../org/grails/orm/hibernate/HibernateSession.java | 7 +
.../orm/hibernate/cfg/GrailsDomainBinder.java | 51 ++---
.../orm/hibernate/cfg/GrailsHibernateUtil.java | 42 +++-
.../orm/hibernate/cfg/HibernateMappingContext.java | 2 +
.../cfg/HibernateMappingContextConfiguration.java | 2 +-
.../orm/hibernate/proxy/HibernateProxyHandler.java | 168 +++++++++++++++
.../query/AbstractHibernateCriteriaBuilder.java | 154 +++++++-------
.../hibernate/query/AbstractHibernateQuery.java | 59 +++++-
.../grails/orm/hibernate/query/HibernateQuery.java | 11 +
.../orm/hibernate/query/PredicateGenerator.java | 45 ++--
.../org/hibernate/proxy/HibernateProxyHelper.java | 24 +++
.../mapping/HibernateMappingBuilderTests.groovy | 8 +-
...bernateOptimisticLockingStyleMappingSpec.groovy | 2 -
.../hibernate/mapping/MappingBuilderSpec.groovy | 3 +-
.../CascadeToBidirectionalAsssociationSpec.groovy | 4 +
.../gorm/specs/CompositeIdWithJoinTableSpec.groovy | 19 +-
.../CompositeIdWithManyToOneAndSequenceSpec.groovy | 29 ++-
.../grails/gorm/specs/DeleteAllWhereSpec.groovy | 1 +
.../grails/gorm/specs/EnumMappingSpec.groovy | 8 +-
.../specs/HibernateEntityTraitGeneratedSpec.groovy | 3 +-
.../grails/gorm/specs/IdentityEnumTypeSpec.groovy | 18 +-
.../specs/MultiColumnUniqueConstraintSpec.groovy | 1 -
.../grails/gorm/specs/NullValueEqualSpec.groovy | 2 -
.../test/groovy/grails/gorm/specs/RLikeSpec.groovy | 2 +
.../groovy/grails/gorm/specs/SqlQuerySpec.groovy | 2 +-
.../grails/gorm/specs/SubqueryAliasSpec.groovy | 27 +--
.../specs/TablePerSubClassAndEmbeddedSpec.groovy | 15 +-
.../groovy/grails/gorm/specs/ToOneProxySpec.groovy | 36 ++++
.../specs/UniqueWithMultipleDataSourcesSpec.groovy | 6 +-
.../groovy/grails/gorm/specs/ValidationSpec.groovy | 7 +-
.../specs/WhereQueryWithAssociationSortSpec.groovy | 13 +-
...WithNewSessionAndExistingTransactionSpec.groovy | 1 -
.../CompositeIdWithDeepOneToManyMappingSpec.groovy | 44 ++--
.../GlobalConstraintWithCompositeIdSpec.groovy | 66 +++---
.../DetachCriteriaSubquerySpec.groovy | 5 +-
.../DetachedCriteriaJoinSpec.groovy | 13 +-
.../DetachedCriteriaProjectionAliasSpec.groovy | 33 ++-
.../DetachedCriteriaProjectionSpec.groovy | 8 +-
.../specs/dirtychecking/PropertyFieldSpec.groovy | 1 -
.../grails/gorm/specs/{ => entities}/Club.groovy | 4 +-
.../gorm/specs/{ => entities}/Contract.groovy | 4 +-
.../grails/gorm/specs/{ => entities}/Player.groovy | 6 +-
.../grails/gorm/specs/{ => entities}/Team.groovy | 2 +-
.../UpdatePropertyInEventListenerSpec.groovy | 1 -
.../specs/hasmany/HasManyWithInQuerySpec.groovy | 6 +-
.../gorm/specs/hasmany/ListCollectionSpec.groovy | 10 +-
.../hasmany/TwoUnidirectionalHasManySpec.groovy | 9 +-
.../specs/hibernatequery/HibernateQuerySpec.groovy | 3 +-
.../gorm/specs/jpa/SimpleJpaEntitySpec.groovy | 13 +-
.../specs/mappedby/MultipleOneToOneSpec.groovy | 1 -
.../MultiTenancyBidirectionalManyToManySpec.groovy | 1 -
.../MultiTenancyUnidirectionalOneToManySpec.groovy | 5 +-
.../grails/gorm/specs/perf/JoinPerfSpec.groovy | 3 +-
.../gorm/specs/proxy/ByteBuddyProxySpec.groovy | 42 +++-
.../gorm/specs/{ => proxy}/GroovyProxySpec.groovy | 3 +-
.../grails/gorm/specs/proxy/StaticTestUtil.groovy | 14 +-
.../gorm/specs/softdelete/SoftDeleteSpec.groovy | 1 -
.../gorm/specs/traits/TraitPropertySpec.groovy | 1 -
.../txs/TransactionalWithinReadOnlySpec.groovy | 2 -
.../grails/gorm/specs/uuid/UuidInsertSpec.groovy | 1 -
.../specs/validation/BeanValidationSpec.groovy | 17 +-
.../specs/validation/CascadeValidationSpec.groovy | 1 -
.../validation/SaveWithInvalidEntitySpec.groovy | 6 +-
.../validation/UniqueFalseConstraintSpec.groovy | 2 +-
.../specs/validation/UniqueInheritanceSpec.groovy | 1 -
.../specs/validation/UniqueWithHasOneSpec.groovy | 14 +-
.../specs/validation/UniqueWithinGroupSpec.groovy | 18 +-
.../HibernateGormStaticApiSpecification.groovy | 234 +++++++++++++++++++++
.../DataSourceConnectionSourceFactorySpec.groovy | 5 +-
.../HibernateConnectionSourceFactorySpec.groovy | 2 -
.../HibernateConnectionSourceSettingsSpec.groovy | 2 -
.../MultipleDataSourceConnectionsSpec.groovy | 2 +-
.../connections/PartitionedMultiTenancySpec.groovy | 40 ++--
.../connections/SchemaMultiTenantSpec.groovy | 6 -
.../hibernate/connections/SingleTenantSpec.groovy | 4 +-
78 files changed, 1035 insertions(+), 569 deletions(-)
create mode 100644
grails-datastore-gorm-hibernate/src/main/groovy/org/grails/orm/hibernate/proxy/HibernateProxyHandler.java
create mode 100644
grails-datastore-gorm-hibernate/src/main/groovy/org/hibernate/proxy/HibernateProxyHelper.java
create mode 100644
grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/ToOneProxySpec.groovy
rename grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/{ =>
detachedcriteria}/DetachCriteriaSubquerySpec.groovy (97%)
rename grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/{ =>
detachedcriteria}/DetachedCriteriaJoinSpec.groovy (93%)
rename grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/{ =>
detachedcriteria}/DetachedCriteriaProjectionAliasSpec.groovy (73%)
rename grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/{ =>
detachedcriteria}/DetachedCriteriaProjectionSpec.groovy (92%)
rename grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/{ =>
entities}/Club.groovy (85%)
rename grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/{ =>
entities}/Contract.groovy (64%)
rename grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/{ =>
entities}/Player.groovy (53%)
rename grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/{ =>
entities}/Team.groovy (87%)
rename grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/{ =>
proxy}/GroovyProxySpec.groovy (96%)
create mode 100644
grails-datastore-gorm-hibernate/src/test/groovy/org/grails/orm/hibernate/HibernateGormStaticApiSpecification.groovy