[hibernate/hibernate-orm] 306991: HHH-18584 disallow "ambiguous" queries for the dep...
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 306991f8d9a34b41ddf716fc5dbc648b4d25584f
https://github.com/hibernate/hibernate-orm/commit/306991f8d9a34b41ddf716f...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-07 (Sat, 07 Sep 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/QueryProducer.java
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/AbstractSqmFrom.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/from/SqmFrom.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/select/SqmSelectClause.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/collectionelement/EmbeddableCollectionElementWithLazyManyToOneTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/embedded/many2one/EmbeddableWithMany2OneTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/idmanytoone/IdManyToOneTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/misc/Misc0Test.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/refcolnames/misc/Misc1Test.java
M hibernate-core/src/test/java/org/hibernate/orm/test/associations/FieldWithUnderscoreTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/bootstrap/binding/annotations/embedded/EmbeddedTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/cid/CompositeIdTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/compositeelement/CompositeElementTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/cuk/CompositePropertyRefTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/formulajoin/FormulaJoinTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/hql/ASTParserLoadingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/hql/SubQueryTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/hql/WithClauseTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/idbag/IdBagTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/inheritance/discriminator/MappedSuperclassExtendsEntityTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/valuehandlingmode/inline/NonPkAssociationEqualityPredicateTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/ql/TreatKeywordTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/legacy/ABCTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/locking/warning/LockNoneWarmingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/map/MapIndexFormulaTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/discriminator/MultiInheritanceImplicitDowncastTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/readwrite/AbstractReadWriteTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/orphan/one2one/pk/unidirectional/DeleteOneToOneOrphansTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/orphan/onetomany/DeleteOneToManyOrphansTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/propertyref/basic/PropertyRefTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/results/ImplicitSelectWithJoinTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/sqm/exec/CrossJoinTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/querycache/AbstractQueryCacheResultTransformerTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/ternary/TernaryTest.java
Log Message:
-----------
HHH-18584 disallow "ambiguous" queries for the deprecated createQuery() method
and add support for using 'this' alias to infer the 'select' list (JPA 3.2)
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Commit: 0c1a1e983274be3a3f7d8d6bb22648b5a7d70c3b
https://github.com/hibernate/hibernate-orm/commit/0c1a1e983274be3a3f7d8d6...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-07 (Sat, 07 Sep 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/AbstractSqmAttributeJoin.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/AbstractSqmFrom.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/AbstractSqmPluralJoin.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmSingularJoin.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/from/SqmAttributeJoin.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/from/SqmFrom.java
Log Message:
-----------
HHH-18584 fix logic for deciding if something is implicitly selectable
implicit joins should not be added to the select list!
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Compare: https://github.com/hibernate/hibernate-orm/compare/2630b33261f4...0c1a1e9...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
4 months
[hibernate/hibernate-orm] 35f96d: HHH-18570 reallow use of 'date' and 'time' as regu...
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 35f96d6e901dbd071b375d809521ef6f1c979868
https://github.com/hibernate/hibernate-orm/commit/35f96d6e901dbd071b375d8...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-06 (Fri, 06 Sep 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/sql/Template.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/TemplateTest.java
Log Message:
-----------
HHH-18570 reallow use of 'date' and 'time' as regular column names in parsed SQL
attempt to simplify the logic here
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Commit: a7c3e9a4e976f9f2b04a318dcf2ff5a5034aa13a
https://github.com/hibernate/hibernate-orm/commit/a7c3e9a4e976f9f2b04a318...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-06 (Fri, 06 Sep 2024)
Changed paths:
M documentation/src/main/asciidoc/introduction/Advanced.adoc
Log Message:
-----------
document explicitly that filter restrictions are written in SQL
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Commit: a20fb5663dc6e389aa1d9787dfbaf9750b693943
https://github.com/hibernate/hibernate-orm/commit/a20fb5663dc6e389aa1d978...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-06 (Fri, 06 Sep 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/FilterHelper.java
M hibernate-core/src/main/java/org/hibernate/mapping/Formula.java
M hibernate-core/src/main/java/org/hibernate/mapping/PersistentClass.java
M hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/function/SqmFunctionRegistry.java
M hibernate-core/src/main/java/org/hibernate/sql/Template.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/TemplateTest.java
Log Message:
-----------
major rework of Template + battery of new tests
I discovered that the over-complex support for ANSI trim() was
completely broken, unsurprisingly, given the complexity of the
implementation, and the absence of tests.
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Commit: d1fdb24fb8f63c9d06006a54d6a64ea48ba57f72
https://github.com/hibernate/hibernate-orm/commit/d1fdb24fb8f63c9d06006a5...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-06 (Fri, 06 Sep 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/internal/InFlightMetadataCollectorImpl.java
Log Message:
-----------
minor cleanups to InFlightMetadataCollectorImpl
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Commit: 57cfbb616164b6cb93fd6bb1b3f8a4a5d4f7d59f
https://github.com/hibernate/hibernate-orm/commit/57cfbb616164b6cb93fd6bb...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-06 (Fri, 06 Sep 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/Filter.java
M hibernate-core/src/main/java/org/hibernate/internal/FilterHelper.java
M hibernate-core/src/main/java/org/hibernate/internal/FilterImpl.java
M hibernate-core/src/main/java/org/hibernate/internal/util/StringHelper.java
M hibernate-core/src/main/java/org/hibernate/mapping/Selectable.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/predicate/FilterPredicate.java
Log Message:
-----------
simplify quoting algorithm in FilterHelper
and generally refactor logic
eliminate cast to FilterImpl
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Commit: 2630b33261f43bc3d8eb137dd1f0d9c5776a29ca
https://github.com/hibernate/hibernate-orm/commit/2630b33261f43bc3d8eb137...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-06 (Fri, 06 Sep 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/dialect/MariaDBDialect.java
Log Message:
-----------
workaround for Maria reporting that "string" is a keyword
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Compare: https://github.com/hibernate/hibernate-orm/compare/cb0268a61885...2630b33...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
4 months
[hibernate/hibernate-ogm] 5ea6b5: OGM-1589: Add hibernate-ogm metadata to MongoClien...
by Jeff Yemin
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-ogm
Commit: 5ea6b534730105f3a04197f9a460854d81a49cc8
https://github.com/hibernate/hibernate-ogm/commit/5ea6b534730105f3a04197f...
Author: Jeff Yemin <jeff.yemin(a)mongodb.com>
Date: 2024-09-06 (Fri, 06 Sep 2024)
Changed paths:
M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/impl/MongoDBDatastoreProvider.java
Log Message:
-----------
OGM-1589: Add hibernate-ogm metadata to MongoClient construction
This change allows users to track which connections are coming
from hibernate-ogm by examining the MongoDB server logs, by
looking for log statements like this:
{
"t": {
"$date": "2024-09-05T11:52:33.248-04:00"
},
"s": "D2",
"c": "COMMAND",
"id": 21965,
"ctx": "conn304",
"commandArgs": {
"isMaster": 1,
"helloOk": true,
"client": {
"driver": {
"name": "mongo-java-driver|legacy|hibernate-ogm",
"version": "4.11.3|5.4.2"
},
"os": {
"type": "Darwin",
"name": "Mac OS X",
"architecture": "x86_64",
"version": "14.6.1"
},
"platform": "Java/Amazon.com Inc./1.8.0_422-b05"
},
"$db": "admin"
}
}
Note the driver name and version refer to both the underlying MongoDB Java driver and hibernate-ogm.
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-ogm/settings/notifications
4 months