Gavin King
ec830945e6
HHH-16633 improve jdoc for query methods
2023-07-14 15:49:51 +02:00
Gavin King
ded5451436
HHH-16633 allow finder and query methods to accept the session (better impl)
2023-07-14 15:49:51 +02:00
Gavin King
803cd6aa1e
HHH-16633 allow finder and query methods to accept the session type as a parameter
2023-07-14 15:49:51 +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
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
45af5c2f5a
oops, remove a debugging statement that I accidentally committed
2023-07-12 21:43:51 +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
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
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
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
d7fd5bd78a
HHH-16633 add ability to generate @Find methods for @NaturalIds and arbitrary field lists
2023-07-07 22:44:07 +02:00
Gavin King
0c40711563
HHH-16633 add ability to generate @Find methods
2023-07-07 22:44:07 +02:00
Gavin King
3969c74963
HHH-16633 add DAO-style repository generation
2023-07-07 22:44:07 +02:00
Gavin King
677b9848a2
minor bug fixes and code cleanups to Metamodel Generator
2023-07-06 23:43:23 +02:00
Gavin King
f933b064e9
HHH-16633 support new Order and Page objects as parameters of query methods
2023-07-06 01:02:15 +02:00
Gavin King
a2defad7a4
HHH-16887 smoke test HQL validation
2023-07-04 19:53:15 +02:00
Gavin King
28b1670d18
HHH-16887 also validate arguments of @NamedQuery if @CheckHQL is specified
2023-07-04 19:53:15 +02:00
Gavin King
13877a9a3e
HHH-16887 update tests
2023-07-04 19:53:15 +02:00
Gavin King
f61e00c642
HHH-16887 integrate full HQL typechecking into Metamodel Generator!
2023-07-04 19:53:15 +02:00
Jan Schatteman
95bcd9460f
HHH-13506 - Quickfix
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-06-27 16:18:55 +02:00
Gavin King
eeebf20b9c
allow overloaded query methods
2023-06-27 00:39:39 +02:00
Gavin King
5141e2b40e
whitespace changes
2023-06-27 00:39:39 +02:00
Sanne Grinovero
e9f879d9d6
Automated cleanup: inefficient branching (thanks IntelliJ)
2023-06-26 14:38:59 +01:00
Sanne Grinovero
0fb5895d08
Automated cleanup: suboptimal string handling (thanks IntelliJ)
2023-06-26 14:38:59 +01:00
Gavin King
3211cb8e9b
HHH-16633 add @see annotations to generated code
2023-06-17 20:07:02 +02:00
Gavin King
e641cfceb7
HHH-16633 typecasts to org.hibernate return types + handle projections correctly
2023-06-17 20:07:02 +02:00
Gavin King
56cf0c414c
HHH-16813 don't add @Generated annotations if it's going to cause a compilation failure
2023-06-17 20:07:02 +02:00
Gavin King
b1998782e9
HHH-16633 introduce new package for @HQL, @SQL, @CheckHQL annotations
2023-06-17 20:07:02 +02:00
Gavin King
cfe545ec3d
HHH-16633 introduce native query methods to JPA metamodel generator
2023-06-17 20:07:02 +02:00
Gavin King
698b245753
HHH-16633 introduce query methods to JPA metamodel generator
2023-06-17 20:07:02 +02:00
Gavin King
727a9b2c03
generate typesafe references to named queries, fetch profiles, entity graphs, fetch profiles
...
add support for about @FilterDef
2023-06-13 22:48:21 +02:00
Francois Steyn
a415555df4
HHH-16563: Using jakarta.annotation.Generated instead of javax versions
2023-06-07 16:46:13 -05:00
Cedomir Igaly
29a4d6bf06
HHH-16261 - Change Gradle build script to allow separate builds using JDK 11 and JDK 17
2023-04-25 10:21:33 +02:00
Cedomir Igaly
2246f4225c
HHH-16261 - Avoid explicit use of ElementKind.RECORD to make code compilable under JDK 11
2023-04-25 10:21:33 +02:00
Cedomir Igaly
bb3c647252
HHH-16261 - Fixed formatting
2023-04-25 10:21:33 +02:00
Cedomir Igaly
dad3f500eb
HHH-16261 - Not ignoring JDK 14 records when processing
2023-04-25 10:21:33 +02:00
Cedomir Igaly
672eaed86c
HHH-16261 - More strict test case
2023-04-25 10:21:33 +02:00
Cedomir Igaly
643cd32504
HHH-16261 - Check if address field has been generated in Author_ class
2023-04-25 10:21:33 +02:00
Cedomir Igaly
52e84fb3e4
HHH-16261 - Test case for HHH-16261
2023-04-25 10:21:33 +02:00
Christian Beikov
783da2a906
HHH-16389 Introduce checkerframework for nullness marking/checking and null check the JPA metamodel generator
2023-04-05 19:14:37 +02:00
Jan Schatteman
722a216593
HHH-15372 - Update the jpa schema versions
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-01-10 18:29:50 +01:00
Gavin
7aa92a7c05
allow @Formulas to refer to columns of @SecondaryTables
...
(this is something that was previously only possible using hbm.xml)
also attempt a partial fixup of the initialization process where SessionFactoryImpl
constructor leaked out an uninitialized reference to itself (it still leaks, but
not as badly)
2023-01-02 21:45:02 +01:00
Marco Belladelli
f38dd28043
HHH-15760 mass replace self-closing tags in javadoc
2022-11-26 09:49:56 +01:00
Steve Ebersole
69e57404c6
HHH-15226 - Publish a Gradle platform (Maven Bom++) for Hibernate ORM
...
- plus use Gradle version catalogs as opposed to `libraries.gradle`
- dropped OSGi manifest entries for hibernate-envers - they were broken and we decided we no longer support OSGi
2022-04-26 14:41:04 -05:00
Christian Beikov
a4b6b237dd
HHH-15163 Switch from Java EE to Jakarta XML Binding dependency for jpamodelgen
2022-04-04 14:29:27 +02:00
Christian Beikov
bdf8b2fc2e
Fully generify and simplify UserType contract
2022-03-04 11:14:17 +01:00
Christian Beikov
445cedfec7
Cleanup the naming of JavaDescriptor and JavaTypeDescriptor to align with the new naming JavaType
2022-01-20 16:01:02 +01:00
Steve Ebersole
448d678fb5
Drop `@CollectionClassificationType`;
...
Drop `@CollectionSemantics`;
Drop `@CollectionSemanticsRegistration(s)`;
Add `@CollectionTypeRegistration(s)`;
Rename `@CustomType` to `@Type`;
User Guide and Migration Guide changes
2022-01-06 21:46:48 -06:00
Steve Ebersole
a71ba9e385
Initial work to re-organize the Collections chapter in the UserGuide;
...
Docs for @CollectionType, @CollectionClassificationType and @CollectionSemantics;
Some api/spi/internal work;
Migration Guide;
2022-01-05 16:26:58 -06:00
Steve Ebersole
686d8fcbf1
HHH-14870 - Rename {Xyz}TypeDescriptor as {Xyz}Type
...
* `JavaTypeDescriptor` -> `JavaType`
* `JdbcTypeDescriptor` -> `JdbcType`
2021-10-11 13:13:13 -05:00
Steve Ebersole
3a0065eea4
HHH-14870 - Rename {Xyz}TypeDescriptor as {Xyz}Type
...
* `JavaTypeDescriptor` -> `JavaType`
* `JdbcTypeDescriptor` -> `JdbcType`
2021-10-11 13:11:32 -05:00
Steve Ebersole
9ad34c21d4
HHH-14856 - Introduce @CustomType;
...
HHH-14863 - Compositional definition of basic value mappings;
HHH-14864 - Drop legacy Type-based annotations;
HHH-14865 - Re-work @Any and @ManyToAny support;
* re-use BeanInstanceProducer
* Removed `@CollectionId#type`
* Change `@Any` / `@ManyToAny`
* Removed `@MapKeyType`
* Removed `@TypeDef`
* Removed `@TypeDefs`
* Removed `@Type`
* Removed `@AnyMetaDefs`
* Removed `@AnyMetaDef`
* Removed `@MetaValue`
2021-10-07 10:01:21 -05:00
Christian Beikov
1cb6ff8916
Cleanup naming of JavaTypeDescriptor and JdbcTypeDescriptor implementations. Get rid of PrimitiveType, IdentifierType, DiscriminatorType and AllowableTemporalParameterType
2021-10-07 08:15:53 +02:00
Christian Beikov
9e83129fc3
Change JavaTypeDescriptor#fromString to accept a CharSequence instead of String and introduce CharSequence utilities to avoid creating intermediate strings
2021-10-05 15:18:38 +02:00
Steve Ebersole
47b58f7fa2
HHH-14837 - Move to Jakarta EE
...
- fix ConcreteLike.java from hibernate-jpamodelgen
2021-09-27 08:21:36 -05:00
Steve Ebersole
995e7d9780
HHH-14837 - Move to Jakarta EE
...
- fix hibernate-jpamodelgen dependencies
2021-09-27 08:21:36 -05:00
Steve Ebersole
089a3f86ae
HHH-14837 - Move to Jakarta EE
...
preliminary transformation;
only `javax.persistence.*` settings supported atm
2021-09-27 08:21:27 -05:00
boris-unckel
3be25aa899
HHH-14760 Close resource - potential resource leak
...
Fixes https://hibernate.atlassian.net/browse/HHH-14760
2021-08-09 10:28:06 +01:00
Steve Ebersole
3b78f30309
Few Gradle file related tasks
...
- dropped explicit apt output handling - Gradle has that built in
- Switched other uses to write to the standard `${buildDir}/generated/sources` dir
2021-08-02 16:35:16 -05:00
Andrea Boriero
e93f43a43f
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-08-02 14:02:30 +02:00
Christian Beikov
e528a1ab53
HHH-14768 Fix recursive type variable rendering
2021-08-02 09:59:41 +02:00
Steve Ebersole
a716b348f7
japmodelgen xjc task cacheability
2021-07-29 13:31:21 -05:00
Christian Beikov
1a6924c297
HHH-14724 Fix generation of problematic metamodel classes which use TYPE_USE annotations
2021-07-29 12:59:43 +02:00
Thomas Heigl
0fdf431715
HHH-14724 Add test for intersection types
2021-07-29 12:59:43 +02:00
Thomas Heigl
e868e61cec
HHH-14724 Test-case demonstrating compilation issues with converters and validation
2021-07-29 12:59:43 +02:00
Steve Ebersole
9f2ae95397
Gradle task cache
...
Gradle 7 prep
2021-07-26 13:51:38 -05:00
Andrea Boriero
451568f322
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_7
2021-05-31 14:55:18 +02:00
Yoann Rodière
07eca3883d
HHH-14635 Upgrade to log4j 2
2021-05-26 09:05:56 +02:00
Andrea Boriero
ffae5474a6
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_6
2021-05-24 20:41:03 +02:00
Steve Ebersole
c7e37dc1d7
HHH-14513 : Move publishing release and snapshot artifacts to Sonatype OSSRH
2021-05-14 15:06:15 -05:00
Christian Beikov
ff9e9eebc9
HHH-13946 Create Jakarta artifacts for hibernate-core, hibernate-envers, hibernate-jpamodelgen and hibernate-testing
2021-04-30 11:41:05 +02:00
Steve Ebersole
7fcde66d61
HHH-14524 : Rename SqlType(X) as JdbcType(X)
2021-03-29 11:33:56 -05:00
Gavin King
bbf4619fcd
remove deprecated Sort annotation
2021-03-25 18:54:41 +01:00
Andrea Boriero
96d103215c
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-03-22 12:26:31 +01:00
Steve Ebersole
725faa258f
HHH-14509 : Git master -> main branch renaming
2021-03-19 10:59:03 -05:00
Andrea Boriero
6250942e7f
Merge remote-tracking branch 'upstream/master' into wip/6.0
2021-03-05 11:18:14 +01:00
Vlad Mihalcea
17c5fab50e
HHH-12338 - Incorrect metamodel for basic collections
2021-03-04 13:22:37 +01:00
Christian Beikov
6643e9f4bc
Use java.lang.reflect.Type instead of java.lang.Class for JavaTypeDescriptor#getJavaType to support parameterized types
2021-02-23 12:22:54 +01:00
Andrea Boriero
9cf4edfbee
Merge remote-tracking branch 'upstream/master' into wip/6.0
2020-10-26 08:14:01 +00:00
Sanne Grinovero
55cb66780d
HHH-10715 Make static constant collections immutable in metamodel-generator
2020-10-25 21:33:11 +00:00
Sanne Grinovero
1de234ea93
HHH-10715 Unclear excepion handling
2020-10-25 21:33:06 +00:00
Sanne Grinovero
b8ddc70ff1
HHH-10715 Dodgy comparison with Boolean instance
2020-10-25 21:33:04 +00:00