Rob Bygrave
8a4024ecfc
FIX for filterMany with raw expression with single SQL query
...
Fix for the case where the filterMany is not executed on a separate
query but instead part of the origin query.
The fix is to use the appropriate DeployParser and also fix the path
alias like ${} -> ${contacts}
2023-08-19 13:54:38 +12:00
Rob Bygrave
9756c9133e
Improve existing test for filterMany using raw with separate SQL query for filterMany
2023-08-19 13:46:45 +12:00
Rob Bygrave and GitHub
c07d5e2c97
Merge pull request #3170 from ebean-orm/feature/prefer-char-append
...
Refactor prefer char append
2023-08-19 11:11:35 +12:00
Rob Bygrave
00e594d4fa
Refactor prefer char append
2023-08-19 11:01:15 +12:00
Rob Bygrave
3bf316af2b
Update Test QCustomerTest removing extra space character in the SQL
2023-08-19 10:17:00 +12:00
Rob Bygrave and GitHub
b116d3da28
Merge pull request #3169 from ebean-orm/feature/filterMany-TQAssoc
...
Add Query bean filterMany() taking a closure
2023-08-19 10:11:46 +12:00
Rob Bygrave and GitHub
804618d699
Merge pull request #3168 from ebean-orm/feature/like-extra-space
...
Remove extra space added to the generated SQL via the LIKE expression
2023-08-19 10:05:17 +12:00
Rob Bygrave
0e9fe6a096
Remove extra space added to the generated SQL via the LIKE expression
2023-08-19 09:29:19 +12:00
Rob Bygrave
ded4b94e54
Add Query bean filterMany() taking a closure
...
Query beans also generate a "Assoc" query bean that is used
for the relationships. Previously these were generated into a
.query.assoc package and with this they are generated as an
inner class of the query bean.
This then allows the change where an additional filterMany()
is generated on the "Assoc" bean that takes a closure. This
simplifies the use of query beans for filterMany.
This change to the generated query beans needs a change to the
ebean-agent enhancement.
2023-08-18 22:12:30 +12:00
Rob Bygrave
eb0812df16
Bump to next snapshot
2023-08-17 23:26:26 +12:00
Rob Bygrave
9ccaa824e0
Version 13.21.0
13.21.0
2023-08-17 22:51:00 +12:00
Rob Bygrave and GitHub
d6e46b15a3
Merge pull request #3167 from ebean-orm/feature/InTuples-Literal-skipCache
...
Change Lists.partition() argument order to match Guava's
2023-08-17 15:36:35 +12:00
robin.bygrave
bab9be0228
Change Lists.partition() argument order to match Guava's
...
- May as well match what they have in terms of arg order
- Change from interface to class might be better
2023-08-17 15:36:03 +12:00
Rob Bygrave and GitHub
9331050a43
Merge pull request #3166 from ebean-orm/feature/InTuples-Literal-skipCache
...
InTuples literal mode - don't cache ebean compiled query plan
2023-08-17 15:34:17 +12:00
robin.bygrave
9bcd189730
Test TestInTuplesWithLocalDate does not support SQLServer and DB2 yet
2023-08-17 15:24:28 +12:00
Rob Bygrave and GitHub
428365ceb9
Merge pull request #3164 from FOCONIS/bugfix/drop_foreign_key_without_index
...
BUG: Include drop for foreign keys without index when dropping table
2023-08-17 15:12:19 +12:00
robin.bygrave
76c889c6d9
InTuples literal mode - don't cache ebean compiled query plan
...
- Don't cache ebean compiled query plan when InTuples goes into literal mode
- Postgres maxInBinding = 32_000;
- SQLite maxInBinding = 800;
- Note that not caching the compiled query plan means that metrics visitor isn't
going to see it, we lose collection of that query execution metric. We might
need a plan to fix this later.
2023-08-17 15:08:16 +12:00
Rob Bygrave and GitHub
9e4007d25a
Merge pull request #3165 from ebean-orm/feature/Lists-partitions
...
Add support for literal mode for InTuples with lots of entries
2023-08-17 10:31:03 +12:00
Rob Bygrave
9d7754b92d
Add support for literal mode for InTuples with lots of entries
...
So as to not exceed the limit on bind values, the InTuples expression can
go into literal mode where it uses literal values for supported types -
Numbers, Strings, UUID, and LocalDate.
2023-08-17 00:33:56 +12:00
Rob Bygrave and GitHub
3c80032063
Merge pull request #3163 from ebean-orm/feature/Lists-partitions
...
Add Lists.partition() helper method and use in DefaultPersister batch deletion
2023-08-17 00:32:04 +12:00
Jonas Pöhler
7dae937491
Generate working migration
2023-08-16 12:00:23 +02:00
Jonas Pöhler
6ce5e865ca
FIX: also include foreign keys without index in drop statement
2023-08-16 11:59:50 +02:00
Jonas Pöhler
b0d8fa0286
Generate failing migration
2023-08-16 11:58:57 +02:00
Jonas Pöhler
83c85adbde
ADD: testcase
2023-08-16 11:57:34 +02:00
Rob Bygrave
a1b51fd8ef
For DefaultPersister batch deletion, use more explicit maxDeleteBatch
2023-08-16 17:55:41 +12:00
Rob Bygrave
bcc4034371
Add Lists.partition() helper method and use in DefaultPersister batch deletion
2023-08-16 17:39:10 +12:00
Rob Bygrave and GitHub
3dde07fc9f
Merge pull request #3162 from ebean-orm/feature/3133-postgres
...
Tidy IdBinderEmbedded - merge use of getIdProperty() and idSelect()
2023-08-16 00:17:23 +12:00
Rob Bygrave
87ada9e999
IdBinder - refactor rename methods
2023-08-16 00:11:46 +12:00
Rob Bygrave
ea55f25d44
Tidy IdBinderEmbedded - merge use of getIdProperty() and idSelect() to use idSelect()
...
Means we can remove getIdProperty()
2023-08-15 23:36:59 +12:00
Rob Bygrave and GitHub
2231f723f8
Merge pull request #3161 from ebean-orm/feature/3133-postgres
...
Fix to #3133 changes for Postgres adding back support for MultiValue binding
2023-08-15 23:18:53 +12:00
Rob Bygrave
7c16694d4b
Fix to #3133 changes for Postgres adding back support for MultiValue binding
...
The MultiValue binding that we use for Postgres, Yugabyte etc was lost with
the changes in #3133 and this puts that back.
We desire to use Postgres ANY Array binding for these cases.
2023-08-15 23:17:31 +12:00
Rob Bygrave and GitHub
ea60ff47cf
Merge pull request #3160 from ebean-orm/feature/alsoIf
...
Add Query alsoIf() to conditionally apply changes to a query
2023-08-15 22:25:28 +12:00
Rob Bygrave and GitHub
1f7912dab6
Merge pull request #3159 from ebean-orm/feature/idClass
...
Change IdClass property name to _$IdClass$
2023-08-15 21:59:56 +12:00
Rob Bygrave
ec0c00eb72
Add Query alsoIf() to conditionally apply changes to a query
2023-08-15 21:56:50 +12:00
Rob Bygrave
dd99e32cc6
Change IdClass property name to _$IdClass$
2023-08-15 21:55:09 +12:00
Rob Bygrave and GitHub
1decbe0152
Merge pull request #3147 from FOCONIS/rethrow-error-in-commit
...
FIX: Rethrow error in commit path of callbacks
2023-08-14 23:25:04 +12:00
Rob Bygrave and GitHub
d58e3d023f
Merge pull request #3158 from ebean-orm/feature/tidy-idBinderEmbedded
...
Followup for #3133 - "Embedded id expansion on parentIds" for SQLServer and DB2
2023-08-14 23:06:28 +12:00
Rob Bygrave
1598b40c36
Followup for #3133 - "Embedded id expansion on parentIds" for SQLServer and DB2
2023-08-14 23:00:41 +12:00
Rob Bygrave and GitHub
66ef667a0a
Merge pull request #3157 from ebean-orm/feature/tidy-idBinderEmbedded
...
Tidy IdBinderEmbedded final fields, StringBuilder sizes and reuse code
2023-08-14 22:59:15 +12:00
Rob Bygrave
e821d66268
Tidy IdBinderEmbedded final fields, StringBuilder sizes and reuse code
2023-08-14 15:10:00 +12:00
Rob Bygrave and GitHub
b8e164e04c
Merge pull request #3148 from FOCONIS/fix-recursive-batch-flush
...
FIX: Recursive batch flush can save beans in wrong order
2023-08-14 13:55:50 +12:00
Rob Bygrave and GitHub
9097466a7b
Merge pull request #3145 from FOCONIS/m2m-where-formula
...
FIX: Query on formula m2o-property uses wrong alias:
2023-08-14 13:55:21 +12:00
Rob Bygrave and GitHub
99604d8ec3
Merge pull request #3155 from ebean-orm/feature/3133-IdClass-match-on-name
...
#3133 - For IdClass match on property name
2023-08-14 13:53:58 +12:00
Rob Bygrave
95d37fc3dc
Temporary ignore test TestCompositeForeignKey for DB2 and SQLServer
2023-08-14 13:41:34 +12:00
Rob Bygrave
76d85adc98
Fix tests for #3133 MySql and SQLServer which require column ordering of PK and FK to match
2023-08-14 11:14:43 +12:00
Rob Bygrave
2f233db465
#3133 - For IdClass match on property name
2023-08-10 23:22:57 +12:00
Rob Bygrave
1ca73ca6aa
Test only - Update test IdClass CEPProductCategoryId to match expectations
2023-08-10 23:17:47 +12:00
Rob Bygrave and GitHub
d5e4c13fa8
Merge pull request #3154 from ebean-orm/feature/3134-idClass-delete
...
#3134 - String cannot be cast to class io.ebean.bean.EntityBean" when deleting entities that use cascade = [CascadeType.ALL] with composite keys
2023-08-10 21:15:09 +12:00
Rob Bygrave
b5ac31838c
#3134 Fix for - String cannot be cast to class io.ebean.bean.EntityBean" when deleting entities that use cascade = [CascadeType.ALL] with composite keys
2023-08-10 21:11:58 +12:00
Rob Bygrave
e3e9412eea
#3134 Failing test - String cannot be cast to class io.ebean.bean.EntityBean" when deleting entities that use cascade = [CascadeType.ALL] with composite keys
2023-08-10 20:50:40 +12:00