Rob Bygrave
e6b0306bde
Fix test TestStdFunctions for Oracle which only supports 2 parameters with concat()
2023-02-25 01:06:40 +13:00
Rob Bygrave and GitHub
0659d7604c
Merge pull request #2980 from FOCONIS/fix-logger
...
FIX: do not format log messages, when no parameter was specified
2023-02-22 23:38:08 +13:00
rob
2e0dba3741
#2981 - ENH: Add profile-line-number-mode with options none | all | auto ... to control adding line numbers to profile locations
2023-02-22 23:02:42 +13:00
Roland Praml
56360f0fb3
use captureLogger
2023-02-22 09:20:04 +01:00
Roland Praml
d84f2eea58
FIX: do not format log messages, when no parameter was specified
2023-02-22 09:07:49 +01:00
rob
0b615a79cc
Add _ifPresent() expressions for GT, GE, LT, LE (follow up from #2768 )
2023-02-22 14:04:26 +13:00
rob
b0364f3c42
Use StackWalker for ProfileLocation and CallOrigin
2023-02-21 14:21:18 +13:00
rob
ca6171f697
Ignore TestStdFunctions.concatEq for DB2
2023-02-14 22:39:26 +13:00
rob
1f0191b9e4
Tidy ebean-test internals, final classes and whitespace
2023-02-14 19:41:45 +13:00
rob
7c54d21760
#2968 - [ebean-test] - Default ebean.test.registerTestTenantProvider = false ... by default not auto register a test TenantProvider
2023-02-14 19:34:35 +13:00
Rob Bygrave and GitHub
0292b4b558
Merge pull request #2912 from ebean-orm/wip/spi-txn-logging
...
Refactoring SpiLogger to better support conditional logging
2023-02-14 15:03:47 +13:00
rob
2c8ae16179
Update to use String format and Object varargs
2023-02-14 14:54:23 +13:00
Rob Bygrave and GitHub
381ac58eed
Merge pull request #2936 from FOCONIS/mem-leak-streaming-queries
...
BUG: Memory-leak on streaming queries when LoadBuffers are not aligned
2023-02-14 11:45:29 +13:00
rob
5882169641
Merge branch 'feature/StdExpressions'
2023-02-14 11:35:31 +13:00
Rob Bygrave
65c76cb2c0
Fix test to support SqlServer using sequences
2023-02-10 14:22:11 +13:00
Rob Bygrave
874427dac1
Fix test to also support Postgres ANY
2023-02-10 14:19:35 +13:00
Rob Bygrave
44e0585fb7
#2961 - Followup for #2952 - @OneToMany + orphanRemoval + @SoftDelete + non-BeanCollection collection results in hard deletes
...
As noted in comments in #2952
In the internals of SaveManyBeans we have:
- BUG: the deleteByParentId is hard delete and does not care for soft delete
- YUK: internally we have 3 ways of performing the orphan removal when we really want 2
This change fixes the BUG and fixes the YUK. It does this by removing the special case at: https://github.com/ebean-orm/ebean/blob/ebean-parent-13.11.3/ebean-core/src/main/java/io/ebeaninternal/server/persist/SaveManyBeans.java#L347-L350 ... and replacing it with the more common orphan removal code used when we do not have BeanCollection modifications.
The result of this change is that in SaveManyBeans internals we get back to have 2 ways to remove orphans.
- A BeanCollection with modifications: Orphans explicitly deleted using the known elements removed from the collection
- All other cases: Orphans as everything NOT in the collection that is going to be updated
2023-02-10 13:08:44 +13:00
Rob Bygrave
244d45674a
#2952 #2953 - Fix for @OneToMany orphanRemoval not occurring
...
orphanRemoval was not occurring when a loaded bean had a collection
replaced by a new BeanCollection (as opposed to a vanilla collection
like java.util.ArrayList).
Json marshalling a collection puts beans into BeanCollection and this
is part of the test that reproduced this issue.
2023-02-09 23:29:13 +13:00
Rob Bygrave
e01f19b3aa
Merge branch 'one2many_setArraylist' of github.com:buchtajz/ebean into buchtajz-one2many_setArraylist
2023-02-07 20:09:01 +13:00
Rob Bygrave
20f6a659fe
#2959 - Improve logging for lazy loading error due to "markAsDeleted"
2023-02-07 19:59:33 +13:00
Michal Buchtík
09fe923770
Merge remote-tracking branch 'origin/one2many_setArraylist' into one2many_setArraylist
2023-02-05 09:28:11 +01:00
buchtajz and GitHub
e6f5e42c2d
Merge branch 'ebean-orm:master' into one2many_setArraylist
2023-02-05 09:25:29 +01:00
Rob Bygrave
09001e80b5
#2948 - SoftDelete entities are hard deleted on orphan removal
2023-02-02 23:02:44 +13:00
Michal Buchtík
39099bbcc9
print sql
2023-01-31 23:01:52 +01:00
Michal Buchtík
cb2ca0de11
setArrayListDoInsertInsteadUpdate
2023-01-30 23:47:18 +01:00
Jan Klička
b25233b0b9
Merge branch 'master' into hard_delete_instead_of_soft_delete_2
...
# Conflicts:
# ebean-test/pom.xml
2023-01-27 16:28:03 +01:00
Jan Klička
743f1b10e3
#2948
2023-01-27 16:17:01 +01:00
Roland Praml
61d6cccbcb
FIX: Using weak references in load buffer for streaming queries
2023-01-20 16:51:51 +01:00
Rob Bygrave
761ec584b2
#2939 - [yugabyte] Bump testing against Yugabyte to use version 2.16.0.1-b7
2023-01-20 18:01:53 +13:00
Rob Bygrave
519b75a778
Adjust tests for Postgres - DtoQuery2Test and EaObject
2023-01-20 16:58:26 +13:00
Rob Bygrave
93fc7b07a0
Add more tests for DtoQuery column -> property mapping
2023-01-20 09:32:38 +13:00
Rob Bygrave and GitHub
d7e6feebc2
Merge pull request #2935 from ebean-orm/feature/2915-invalid-id-mapping
...
#2915 - Failing test for - generator param of @GeneratedValue is not ignored when using GenerationType.AUTO on db where this uses identity
2023-01-20 08:34:25 +13:00
Roland Praml
a3540057b7
BUG: Memory-leak on streaming queries when LoadBuffers are not aligned
2023-01-18 09:24:47 +01:00
Rob Bygrave
724183f669
Merge branch 'fix-order-by-on-prop' of github.com:FOCONIS/ebean into FOCONIS-fix-order-by-on-prop
2023-01-18 07:46:41 +13:00
Rob Bygrave and GitHub
a40212d41e
Merge pull request #2934 from ebean-orm/feature/2931-redis-collectionIds
...
Ebean Redis - Failed to decode cache data for UUID as Id
2023-01-18 07:41:59 +13:00
Rob Bygrave
03c9782d63
#2915 - Failing test for - generator param of @GeneratedValue is not ignored when using GenerationType.AUTO on db where this uses identity
2023-01-18 00:07:04 +13:00
Rob Bygrave
130e9451f4
#2931 - Fix for Ebean Redis - Failed to decode cache data for UUID as Id
2023-01-17 23:20:33 +13:00
Rob Bygrave
dce6a3e9e1
#2931 - Failing test for Ebean Redis - Failed to decode cache data for UUID as Id
2023-01-17 23:10:08 +13:00
Jonas Pöhler
2633cd6bfe
FIX: drop foreign keys before dropping tables
2023-01-13 15:35:54 +01:00
Jonas Pöhler
2c81d0df03
ADD: failing testcase for dropping two or more related, but otherwise unreferenced tables
2023-01-13 15:14:35 +01:00
Roland Praml
9ef59e359b
Removed supportsSelect (dead code)
2023-01-13 13:43:41 +01:00
Roland Praml
6561f6f5e7
BUG: @OrderBy on chained properties do not work with distinct (fix)
2023-01-13 13:29:16 +01:00
Roland Praml
b2e8e628fa
BUG: @OrderBy on chained properties do not work with distinct (testcase)
2023-01-13 13:06:54 +01:00
Rob Bygrave
bbb8d85971
Fix test TestBeanCache for postgres compatible asserts
2023-01-10 20:17:50 +13:00
Rob Bygrave and GitHub
321fb26df3
Merge pull request #2927 from FOCONIS/findset-beancache
...
NEW: BeanCache for findSet
2023-01-09 10:29:15 +13:00
Rob Bygrave and GitHub
28bd018d1f
Merge pull request #2926 from FOCONIS/prepare-query
...
FIX: prepare FindMap query for proper bean cache / DB access
2023-01-09 10:28:09 +13:00
Rob Bygrave
530bfa982e
Fix memory leak with streaming queries with Id Embedded
...
- The Id Embedded beans do not need the embeddedOwner to be set. They do not need to propagate dirty state back to the owner.
2023-01-05 23:27:22 +13:00
Roland Praml
a2e8f098cf
NEW: BeanCache for findSet
2023-01-04 17:11:24 +01:00
Roland Praml
9e42cfd7d7
FIX: prepare FindMap query for proper bean cache access
2023-01-04 16:59:31 +01:00
Roland Praml
1d48e2afb3
Ignore private/package private classes from CP-scan
2023-01-04 13:59:51 +01:00