Commit Graph

16591 Commits

Author SHA1 Message Date
Gavin King dc22773a9f document CriteriaDefinition 2023-07-13 20:38:01 +02:00
Gavin King af7e7b9afc make it possible to get a named EntityGraph without an unchecked typecast 2023-07-13 18:20:41 +02:00
marko-bekhta 35ea74ec54 HHH-16695 Make AbstractQuery backwards compatible 2023-07-13 18:19:47 +02:00
Steve Ebersole 8386e1851e HHH-16917 - Number not allowed as type for procedure query parameter 2023-07-13 08:48:35 -05:00
Gavin King 8031952d86 document Query Validator, and add a TIP about Metamodel 2023-07-13 14:03:30 +02:00
Marco Belladelli 0aa5b5018f HHH-16845 Fix collection key parameter 2023-07-13 13:43:26 +02:00
Marco Belladelli 29d2ef730e HHH-16845 Add test for issue 2023-07-13 13:43:26 +02:00
Gavin King 7c67097fb0 HHH-16815 fixes to Page class
- prevent construction of negative Pages
- add Page.isFirst()
- fix impl of Page.previous()
2023-07-13 12:41:23 +02:00
Gavin King 96e6476199 HHH-16633 no need to cast to SelectionQuery to call setPage() 2023-07-13 12:41:23 +02:00
Gavin King 0c1a49604e minor Javadoc improvement to SchemaManagementToolCoordinator 2023-07-13 12:40:31 +02:00
Gavin King 5c5d2c2f94 HHH-16633 test for AccessType.PROPERTY in @Find method parameter matching 2023-07-13 10:59:32 +02:00
Gavin King 8681d702a4 HHH-16633 support AccessType.PROPERTY in @Find method parameter matching 2023-07-13 10:59:32 +02:00
Gavin King 376a90f9b5 Bytebuddy -> Byte Buddy 2023-07-12 21:45:26 +02:00
Gavin King 45af5c2f5a oops, remove a debugging statement that I accidentally committed 2023-07-12 21:43:51 +02:00
Gavin King 69e0809bf4 new documentation chapter for @HQL, @SQL, and @Find methods 2023-07-12 21:41:24 +02:00
Gavin King 59fdc46254 HHH-16920 initial prototype support for Reactive in query/finder method generation 2023-07-11 16:30:47 +02:00
Gavin King 70a953e7a8 HHH-16633 completely rework validation for parameters of @HQL query methods 2023-07-11 00:21:19 +02:00
Gavin King b1bdd74432 HHH-16633 support @IdClass in finder methods 2023-07-11 00:21:19 +02:00
Gavin King 10b17a6430 HHH-16633 unbreak support for @Embeddable Java records 2023-07-11 00:21:19 +02:00
Gavin King c8c5d05330 remove incorrect comment 2023-07-10 15:00:18 +02:00
Gavin King 447fa30a89 HHH-16633 add CDI @Dependent annotation if in build path 2023-07-10 14:36:32 +02:00
Gavin King 24db891e84 HHH-16633 better Javadoc and @Nonnull annotations in generated source 2023-07-10 14:36:32 +02:00
Gavin King 02e395c96d HHH-16633 correct handling of null values in criteria-based @Find methods 2023-07-10 14:36:32 +02:00
Gavin King 78843fb2a9 HHH-16633 allow the "session getter" method to not be a getter
add some Javadoc
2023-07-10 14:36:32 +02:00
Gavin King 99d8bf0832 improve Javadoc of org.hibernate.annotations.processing 2023-07-10 14:36:32 +02:00
Gavin King 605a732e05 HHH-16914 add support for EntityGraphs to NaturalIdLoadAccess and SimpleNaturalIdLoadAccess 2023-07-10 14:36:32 +02:00
Gavin King d5c4e2673b HHH-16695 fill in missing javadoc 2023-07-10 14:36:32 +02:00
Gavin King cd75b0baf1 HHH-16633 minor cleanups 2023-07-10 14:36:32 +02:00
Gavin King db4d529f60 HHH-16633 generate query methods from @NamedQuery annotations 2023-07-10 14:36:32 +02:00
Gavin King 16b433ebf1 HHH-16633 clean up 2023-07-10 14:36:32 +02:00
Gavin King 87a320615c HHH-16695 make fetch profiles actually work for natural id loading 2023-07-10 14:36:32 +02:00
Gavin King 3dfa70a781 HHH-16633 use unwrap() in preference to typecasts
perhaps it would be better to preemptively unwrap the
EntityManager to Session, because this approach results
in raw query types (but we don't really care since we
already know it's sound)
2023-07-10 14:36:32 +02:00
Gavin King 9512077462 HHH-16633 fix an issue with the lifecycle of annotation processing
we could not see typesafe references to static strings we generate
2023-07-10 14:36:32 +02:00
Gavin King a4d8580606 HHH-16633 fix for StatelessSession @Find methods 2023-07-10 14:36:32 +02:00
Gavin King 17ea1e28b9 HHH-16633 add ability to specify fetch profiles in @Find annotation 2023-07-10 14:36:32 +02:00
Gavin King 09f110254f HHH-16695 add enableFetchProfile() to XxxxIdLoadAccess 2023-07-10 14:36:32 +02:00
Gavin King 2e351831f1 HHH-16695 add enableFetchProfile() to Query 2023-07-10 14:36:32 +02:00
Gavin King 2409e1a49b HHH-16633 support for StatelessSession in query methods/DAOs 2023-07-08 20:42:05 +02:00
Gavin King a36b683870 more misc cleanups to modelgen code 2023-07-08 20:42:05 +02:00
Gavin King 7d9fa4a536 HHH-16633 more info in two error messages 2023-07-08 20:42:05 +02:00
Gavin King 0c4439b731 copy some test entities from core tests to modelgen tests 2023-07-08 20:42:05 +02:00
Gavin King 294ec27885 HHH-16913 EntityGraph support for StatelessSession 2023-07-08 19:18:26 +02:00
Gavin King 6b7d5bae3d HHH-16899 refinements to the CriteriaDefinition API 2023-07-08 18:06:21 +02:00
Gavin King f3eb0ec770 HHH-16899 allow the CriteriaDefinition to modify an existing query 2023-07-08 18:06:21 +02:00
Gavin King b4b2b295fc HHH-16899 avoid capturing the Session in CriteriaDefinition [as suggested by Sanne] 2023-07-08 18:06:21 +02:00
Gavin King 2d92edd6bb HHH-16899 add test for CriteriaDefinition 2023-07-08 18:06:21 +02:00
Gavin King 7db99d8661 add a link in some package-level javadoc 2023-07-08 18:06:21 +02:00
Gavin King 67ac383c26 HHH-16899 add CriteriaDefinition utility class 2023-07-08 18:06:21 +02:00
Gavin King a440046556 HHH-16898 add JpaExpression.equalTo() 2023-07-08 18:06:21 +02:00
Gavin King d7fd5bd78a HHH-16633 add ability to generate @Find methods for @NaturalIds and arbitrary field lists 2023-07-07 22:44:07 +02:00