Rob Bygrave
99d5f4f01c
Bump to next version 13.13.2
2023-02-24 23:56:44 +13:00
Rob Bygrave
a825e50584
Merge pull request #2983 from ebean-orm/feature/profileLocationWithLineNumbers
...
ENH: Add profile-line-number-mode with options none | all | auto ... to control adding line numbers to profile locations
2023-02-22 23:35:42 +13:00
rob
989d82813b
Revert the use of ${revision} in poms to plain old version dur to issues not being able to use mvn --rf --resume-from ... as it complains about the parent pom version
2023-02-22 23:17:42 +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
rob
34dc4375da
Tidy existing given that lineNumber in SpiProfileLocationFactory always comes in as 0
...
The history behind this is that originally there was a "profileId" concept where that was a int value that could be used as an "id" for a transactional method that we wanted to profile.
That went away and then the idea was that bytecode enhancement would determine the line number and we would use that but that was a bad idea and we ended up with lineNumber always as 0.
These days with StackWalker and DProfileLocation we can do this better that way so yeah. A followup to this is to add to the api a boolean flag as to whether a profile location should be with line numbers (which can change frequently due to refactoring etc)
2023-02-22 15:22:58 +13: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
f493c7e8cf
Modify poms to use ${revision} for dependencies versions and annotation processor versions
2023-02-20 10:19:14 +13:00
rob
0e596fd87f
Modify poms to use ${revision} for parent pom version
2023-02-20 10:09:41 +13:00
rob
e78ac677f6
[maven-release-plugin] prepare for next development iteration
2023-02-15 10:22:46 +13:00
rob
19d2b04175
[maven-release-plugin] prepare release ebean-parent-13.13.0
2023-02-15 10:22:38 +13:00
rob
aa80bc0c10
Bump version to 13.13.0-SNAPSHOT
2023-02-14 20:28:45 +13:00
Rob Bygrave
b9a502ca85
Merge pull request #2957 from FOCONIS/detailed-evict-stats
...
ENH: add statistics trimmedByGC/LRU/TTL/Idle to ServerCacheStatistics?
2023-02-14 16:29:35 +13:00
Rob Bygrave
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
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
acb28925f2
[maven-release-plugin] prepare for next development iteration
2023-02-14 08:07:15 +13:00
rob
3d2a68782c
[maven-release-plugin] prepare release ebean-parent-13.12.0
2023-02-14 08:07:07 +13:00
rob
8c97d4d0fe
Bump version to 13.12.0-SNAPSHOT
2023-02-14 08:02:35 +13:00
Rob Bygrave
015ee44de3
[maven-release-plugin] prepare for next development iteration
2023-02-13 13:34:22 +13:00
Rob Bygrave
714bbadbc0
[maven-release-plugin] prepare release ebean-parent-13.11.4
2023-02-13 13:34:14 +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
889c0f12e0
Merge pull request #2960 from ebean-orm/buchtajz-one2many_setArraylist
...
Fix for @OneToMany orphanRemoval not occurring for #2952 #2953
2023-02-10 13:01:55 +13:00
Rob Bygrave
0135263dbd
Style only for SaveManyBeans switching order in if/else
2023-02-09 23:45:27 +13:00
Rob Bygrave
564194042b
No effective change, BeanCollectionUtil perform the instanceof Collection before instanceof Map check
2023-02-09 23:44:13 +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
3f5140e7f3
[maven-release-plugin] prepare for next development iteration
2023-02-07 22:10:29 +13:00
Rob Bygrave
43dec17d08
[maven-release-plugin] prepare release ebean-parent-13.11.3
2023-02-07 22:10:16 +13:00
Rob Bygrave
3263e7bfc3
#2959 - Improve logging for lazy loading error due to "markAsDeleted"
2023-02-07 22:05:34 +13:00
Rob Bygrave
20f6a659fe
#2959 - Improve logging for lazy loading error due to "markAsDeleted"
2023-02-07 19:59:33 +13:00
Roland Praml
010f73fea2
ENH: add statistics trimmedByGC/LRU/TTL/Idle to ServerCacheStatistics?
2023-02-02 14:10:54 +01:00
Rob Bygrave
5150ecba62
#2948 - SoftDelete entities are hard deleted on orphan removal
2023-02-02 23:15:22 +13:00
Rob Bygrave
978b1dbe02
Merge branch 'master' of github.com:ebean-orm/ebean
2023-02-02 23:06:49 +13:00
Rob Bygrave
09001e80b5
#2948 - SoftDelete entities are hard deleted on orphan removal
2023-02-02 23:02:44 +13:00
Roland Praml
371f50fb4d
NEW: ExpressionList has clear() method
2023-01-23 11:33:29 +01:00
Rob Bygrave
27d9e03691
[maven-release-plugin] prepare for next development iteration
2023-01-21 20:37:02 +13:00
Rob Bygrave
5a3c6b9dad
[maven-release-plugin] prepare release ebean-parent-13.11.2
2023-01-21 20:36:54 +13:00
Roland Praml
61d6cccbcb
FIX: Using weak references in load buffer for streaming queries
2023-01-20 16:51:51 +01:00
Rob Bygrave
1659c526d7
Merge pull request #2938 from FOCONIS/scan-cache-annotations-recursively
...
FIX: Search cache annotations recursively
2023-01-20 09:35:54 +13:00
Rob Bygrave
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
Rob Bygrave
2a6c60c89b
#2915 - Fix for generator param of @GeneratedValue is not ignored when using GenerationType.AUTO on db where this uses identity
2023-01-20 08:27:09 +13:00
Roland Praml
b569ec97ee
FIX: Search cache annotations recursively
2023-01-19 16:22:38 +01:00
Rob Bygrave
f09cba3ab5
#2930 - Add extra test for DbOrderByTrimTest
2023-01-18 07:52:43 +13: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
130e9451f4
#2931 - Fix for Ebean Redis - Failed to decode cache data for UUID as Id
2023-01-17 23:20:33 +13:00
Roland Praml
6561f6f5e7
BUG: @OrderBy on chained properties do not work with distinct (fix)
2023-01-13 13:29:16 +01:00
Rob Bygrave
f5f59d90d4
[maven-release-plugin] prepare for next development iteration
2023-01-09 10:45:37 +13:00
Rob Bygrave
ac3f4ca369
[maven-release-plugin] prepare release ebean-parent-13.11.1
2023-01-09 10:45:29 +13:00
Rob Bygrave
321fb26df3
Merge pull request #2927 from FOCONIS/findset-beancache
...
NEW: BeanCache for findSet
2023-01-09 10:29:15 +13:00