Commit Graph

18090 Commits

Author SHA1 Message Date
Andrea Boriero cd9bc2bb22 HHH-17881 Add test for issue 2024-04-03 13:58:32 +02:00
Andrea Boriero 5eacb26f09 HHH-16672 Locking entities created in the same transaction fails 2024-04-03 13:56:36 +02:00
Daniel Mensinger aba5ac47a0 HHH-16672 test case 2024-04-03 13:56:36 +02:00
Marco Belladelli dc71c17503 HHH-17828 Special case for uninitialized enhanced proxies when locking 2024-04-03 09:43:03 +02:00
Daniel Mensinger fbd170b853 HHH-17828 Add test for issue 2024-04-03 09:43:03 +02:00
Christian Beikov f7805e952b HHH-17908 Allow varchar for STRING enums on MySQL in schema validation 2024-04-02 16:43:56 +02:00
Christian Beikov 0389fed095 HHH-17898 Throw error if non-lateral from-clause subquery uses outer from node 2024-04-02 16:42:13 +02:00
Gavin King 08d5da7844 simplification, use getAllMembers() in processor
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:38:36 +02:00
Gavin King a12a2cad80 support for queries defined in intermediate classes
for our work on the Jakarta Data TCK

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:38:30 +02:00
Gavin King 7d80b8a3db fix to @OrderBy for @Query methods with primary entity type
don't think this is even strictly-speaking required by Jakarta Data
but we will allow it

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:38:22 +02:00
Gavin King dcfc254635 fix another bug in detecting when a repo method param is multivalued
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:38:18 +02:00
Gavin King d99309db52 fix a bug in detecting when a repo method param is multivalued
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:38:14 +02:00
Gavin King 8db57d791b when CDI is missing, do still add an @Inject annotation on the constructor
at least when jakarta.inject is available

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:38:11 +02:00
Gavin King 01ee8eacd8 when CDI is missing, don't create default constructor for injection
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:38:08 +02:00
Gavin King b2e572fc30 add a couple of extra tests for Jakarta Data
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:38:04 +02:00
Gavin King 427de60322 fix for Bean Validation annotations on @Query method parameters
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:38:01 +02:00
Gavin King af3b9f011b simplify the generated code for cursored pagination
as suggested by Nathan Rauh

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:37:56 +02:00
Gavin King 985ea18a5a fix cursored previous page navigation
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:37:53 +02:00
Gavin King 0745ed0770 fix bug where type annotations got generated onto Class literals
needed for Jakarta Data TCK

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:37:49 +02:00
Gavin King af153b00fb fix bug in handling of 'this', fix error locations for HQL validation
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:37:45 +02:00
Gavin King 0f5827a7d1 allow binding Lists to 'in' condition parameters for @Query method
required by Jakarta Data, and generally very useful!

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:37:39 +02:00
Gavin King 17ab28a220 allow long as return type of mutation @Query method
required by Jakarta Data

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:37:31 +02:00
Gavin King 31b5af94c1 HHH-17882 test for list of warnings in addSuppressWarningsAnnotation
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:37:27 +02:00
Gavin King 16ebcc427b HHH-17882 accept a list of warnings to suppress in addSuppressWarningsAnnotation
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:37:21 +02:00
Gavin King 26beb3db64 tolerate badly-typed PageRequest parameters
as required by Jakarta Data TCK

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:37:13 +02:00
Gavin King 1551afc4ef minor cleanup to annotation handling in processor
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:37:08 +02:00
Gavin King 108374d4f0 let a handwritten metamodel "override" the generated one
used in the JD TCK (ffff)

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:37:03 +02:00
Gavin King e829a01aee fix a bug in @Query handling
add a test for empty query string in @Query

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:36:51 +02:00
Gavin King 39f09aecae handle inner enum literal in HQL
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:36:28 +02:00
Gavin King 6de223572e handle unqualified enum values in @Query
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:36:23 +02:00
Gavin King 8caa7096fb make fully-qualified enum literals in @Query pass the validation
JD examples and TCK require this, though it's not really correct

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 16:36:18 +02:00
Marco Belladelli 0e9da568c8 HHH-17835 Custom ConvertedPrimitiveBasicTypeImpl type resolution 2024-04-02 12:33:30 +02:00
Marco Belladelli 76d4768d26 HHH-17835 Add test for issue 2024-04-02 12:33:27 +02:00
Marco Belladelli a79ebfec97 HHH-17803 Fix resolving enum basic path source mapping expressibles 2024-03-29 10:39:18 +01:00
Marco Belladelli dc18d92702 HHH-17803 Add test for issue 2024-03-29 10:39:13 +01:00
Christian Beikov f698c6e2e4 HHH-17493 Ensure case insensitivity is retained in negated copy 2024-03-28 16:45:55 +01:00
Jan Schatteman 9527cbaa4a HHH-17493 - add tests and fix
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-03-28 16:45:55 +01:00
Yanming Zhou fa2e8f73e7 HHH-12202 Introduce ParameterType.getReturnedJavaType() as companion of getReturnedClass() 2024-03-28 16:09:33 +01:00
Vincent Bouthinon 5c2fb290f5 HHH-17871 Error if defining a ManyToAny in the child classes which references a @MappedSuperclass
Rename column "ROLE" to "ROLE_COL" for a problem with sybase
2024-03-28 16:07:56 +01:00
Vincent Bouthinon 82f45fc741 HHH-17871 Error if defining a ManyToAny in the child classes which references a @MappedSuperclass 2024-03-28 16:07:56 +01:00
Gavin King c32f0a08fa hack in acceptance of PageRequest<?>
JD examples and TCK require this, though it's not really correct

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-03-28 10:03:28 +01:00
Gavin King 091ba9af76 fix bug in checking of PageRequest type arg
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-03-28 10:03:28 +01:00
Gavin King 39fb5a6549 support 'this' with @Query repository methods
in a very temporary way

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-03-28 10:03:28 +01:00
Gavin King 49d440e653 fix handling of @By("id(this)")
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-03-28 10:03:27 +01:00
Gavin King b2ec831e81 spec-compliant inference of entity type in @Query
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-03-28 10:03:27 +01:00
LLEFEVRE 16f9ca0426 HHH-17736 Improve Atlas for atps 2024-03-27 18:07:07 +01:00
LLEFEVRE 9891971d03 HHH-17736 Improve Atlas for atps 2024-03-27 18:07:07 +01:00
LLEFEVRE c94bd1feef HHH-17736 Improve Atlas for atps 2024-03-27 18:07:06 +01:00
LLEFEVRE d6f928d0ae HHH-17736 Improve Atlas for atps 2024-03-27 18:07:06 +01:00
Christian Beikov bb51c9772f Change branch name in GH actions workflows to 6.5 2024-03-27 16:42:23 +01:00