Rob Bygrave and GitHub
3310d2186d
Remove autoCommitMode and explicitTransactionBeginMode ( #1993 )
...
These are legacy options that we don't want anyone using going forward.
2020-04-30 23:36:24 +12:00
rob bygrave
92ea8e3738
#1998 - Refactor internals rename createQueryTransaction() to createReadOnlyTransaction()
2020-04-25 17:38:54 +12:00
rob bygrave
c349832d35
#1997 - Modify @Transactional(readOnly=true) to use the read only DataSource
2020-04-25 17:33:33 +12:00
rob bygrave
524e3e31f0
Refactor rename Transaction setGetGeneratedKeys(), setFlushOnMixed() setFlushOnQuery() ... (remove the "batch" part)
2020-03-05 01:10:41 +13:00
Rob Bygrave and GitHub
b24f093bbb
Remove io.ebean.meta.MetricType as it is unnecessary ( #1923 )
2020-02-22 09:17:14 +13:00
Rob Bygrave and GitHub
3c9d7e3127
Merge pull request #1925 from ebean-orm/feature/refatorTxnProfile
...
#1924 - Refactor for Transaction profiling - base on ProfileLocation / remove profileId
2020-02-04 22:38:44 +13:00
Roland Praml and rob bygrave
13f8da6b2e
FIX: Add cause to exception
2020-02-01 14:07:09 +13:00
rob bygrave
9eab67d82e
#1924 - Refactor for Transaction profiling - base on ProfileLocation / remove profileId
2020-02-01 11:31:43 +13:00
rob bygrave
acff330b37
#1918 - Ebean 12.1.9 breaks Guice in Stage.PRODUCTION mode for multi tenant apps
2020-01-28 12:07:07 +13:00
rob bygrave
eb69499ca3
#1835 Fix with Refactor batch escalation for deferred imported Id
2019-10-10 15:13:21 +13:00
rob bygrave
80a764a448
#1835 Refactor JDBC batch escalation
2019-10-09 00:17:34 +13:00
rob bygrave
6621c5dfbb
Refactor detection of deferred persist relationship (circular imported ids)
2019-10-08 21:49:22 +13:00
rob bygrave
fb5a69adea
#1833 - When cascade persisting twice to ElementCollection ... we get do extra delete and inserts
2019-10-08 13:25:18 +13:00
rob bygrave
a08cf548e7
#1770 - Support use of Savepoints with MySql and MariaDB (that barf on savepoint.getSavepointId())
2019-07-21 22:57:56 +12:00
rob bygrave
f31ab4d6a8
#1758 - Error when using ebean 11.41.1 and ebean-spring-txn 11.10.4
...
Fix method visibility restoring those methods as public
2019-07-17 10:27:07 +12:00
rob bygrave
f5c12a916d
#1747 - Refactor io.ebeaninternal.server.transaction access and remove unused
2019-07-02 22:58:31 +12:00
rob bygrave
7fa5e2aa8c
#1738 - Refactor add final, Object.equals, Integer.compare
2019-06-29 00:23:12 +12:00
rob bygrave
d70da1d805
#1738 - Refactor tidy internals - refactor move server.lib.Str
2019-06-28 21:32:15 +12:00
Rob Bygrave and GitHub
7fbdab6220
Refactor TableModState to use nanoTime refactor ( #1720 )
...
* #1719 - Refactor TableModState to use nanoTime
* Tests only - reduce logging
2019-05-21 00:42:17 +12:00
rob bygrave
dcd81a857d
#1717 - Add tests for Query Cache invalidation
...
Revert the prior change that added the extra calls to
changeSet.addInvalidate(desc); as they are not needed.
2019-05-20 21:14:47 +12:00
Roland Praml and Rob Bygrave
0cac723eac
Query Cache will not always be invalidated ( #1717 )
...
* provide failing test, that shows missing cache invalidation
* FIX: proper cache invalidation when dependent table will be modified
2019-05-20 20:25:18 +12:00
Rob Bygrave and GitHub
c6ba4d8155
Refactor DefaultTransactionThreadLocal, convert ThreadLocal to field (from map) ( #1716 )
...
* Refactor DefaultTransactionThreadLocal, convert ThreadLocal to field (from map)
* Add test for multiple database thread locals
2019-05-18 15:16:17 +12:00
Rob Bygrave and GitHub
201958f38c
Refactor tidy on DefaultTransactionThreadLocal ( #1715 )
...
- remove unused methods
- use clear() rather than set(null)
2019-05-18 12:32:17 +12:00
rob bygrave
1042fdb280
Merge branch 'feature/1711-v2'
2019-05-18 11:43:51 +12:00
Roland Praml and Rob Bygrave
895b5ee4ff
The BaseTestCase ensures, that the threadLocal is cleared after each test. ( #1712 )
...
* The BaseTestCase ensures, that the threadLocal is cleared after each test.
* Change JdbcTransaction.toString to distingush between active and inactive transaction
2019-05-18 11:28:46 +12:00
rob bygrave
c839fe6520
Adjustment on #1711 , more explicit clearing of inactive transactions from thread local
2019-05-18 11:21:11 +12:00
Roland Praml and Rob Bygrave
2678f85506
Fix memory leak in threadLocal on implicit transactions ( #1711 )
...
* refactor TestExecutionComplete
* Add more tests to discover missing threadScope cleanups
* FIX: clear threadScope on implicit created Jdbc transactions
* FIX: clear threadScope on completed JTA transactions
* Revert "FIX: clear threadScope on completed JTA transactions"
This reverts commit f844405542 .
2019-05-18 10:00:34 +12:00
rob bygrave
30da589ea0
#1701 (v2) - Replace TransactionMap with HashMap in DefaultTransactionThreadLocal
...
- Use ThreadLocal.withInitial to always have a map.
- Remove the calls to local.remove(); when the map is empty (with the expectation that the thread local will GC with an empty map.
2019-05-17 12:01:28 +12:00
rob bygrave
73990e3fb7
#1701 (v2) - Replace TransactionMap with HashMap in DefaultTransactionThreadLocal
2019-05-16 22:26:11 +12:00
rob bygrave
1c6fa575f2
#1669 - When deleting complex object graphs, entities are deleted multiple times
...
Fix by not unregistering the deleted bean hash in the transaction so that
the skip occurs on other root level bean traversals (the delete of the
2nd master bean)
2019-04-09 20:30:17 +12:00
rob bygrave
0377e3ec5c
#1586 - ENH: Add TimedMetric.addSinceNanos() ... as a helper when using start nanos
2018-12-21 02:10:16 +13:00
rob bygrave
8fc6c4c648
#1580 - Refactor move io.ebeaninternal.metric to public package of io.ebean.metric (such that it can be used by plugins like redis l2 cache plugin)
2018-12-19 14:16:36 +13:00
rob bygrave
83776a1eae
#1552 - Remove deprecated methods on Transaction setBatch(PersistBatch) .. migrate to setBatchMode(boolean)
2018-11-19 23:36:15 +13:00
Roland Praml and Rob Bygrave
808004165c
Code cleanup ( #1534 )
...
* removed unused imports (no code change)
* Add missing @Override / @SupressWarnings (no code change)
* FIX: serialization warnings
* FIX: Access to static member
2018-11-10 20:07:01 +13:00
Rob Bygrave and GitHub
f928923b5b
#1519 - Memory leak when using @Cache(enableQueryCache=true) ( #1523 )
...
* #1519 - Memory leak when using @Cache(enableQueryCache=true)
* #1519 - Memory leak when using @Cache(enableQueryCache=true)
Remove unused TransactionEventBeans
2018-10-31 23:53:16 +13:00
rob bygrave
6d1e3a08e1
#1470 - Change OnQueryOnly to default to OnQueryOnly.COMMIT
2018-08-13 21:59:33 +12:00
rob bygrave
ed566ca153
#1427 - QueryCache should be cleared, if one of a dependent bean is updated
...
Refactor on PostCommitProcessing with fixes for dependent table invalidation
2018-06-26 00:25:33 +12:00
rob bygrave
ae55b58438
No effective change - remove unused imports
2018-06-19 01:48:45 +12:00
rob bygrave
671d082ad3
#1427 - Map all deleteByIds into a single CacheChangeBeanRemove and use bulk removeAll api to remove from cache
2018-06-19 01:34:28 +12:00
rob bygrave
43e95d81f6
#1427 - RemoteTransactionEvent process dependent tables
2018-06-19 00:50:14 +12:00
rob bygrave
8d976f83a9
#1417 - Breaking API - Remove PersistBatch.INSERT ... migrate to PersistBatch.ALL
2018-06-18 21:15:10 +12:00
rob bygrave
085843339f
#1432 - Refactor internals for RemoteTransactionEvent / BeanPersistIds ... to not send inserted ids
2018-06-17 23:34:27 +12:00
rob bygrave
bf33b3f96f
#1431 - Refactor internals for RemoteTransactionEvent binary serialisation
2018-06-17 23:29:11 +12:00
rob bygrave
e1d4159453
#1431 - Refactor internals for RemoteTransactionEvent binary serialisation
2018-06-17 22:25:45 +12:00
rob bygrave
9c73309dfd
#1427 - QueryCache should be cleared, if one of a dependent bean is updated
...
Update RemoteTransactionEvent, add (back) common binary message handling (Common to TCP, K8s and upcoming binary pubsub)
2018-06-16 15:15:54 +12:00
rob bygrave
bd3c99e67f
#1427 - QueryCache should be cleared, if one of a dependent bean is updated
...
Wrap Clock as ClockService to use in TransactionManager and DefaultServer (and allow for changing the Clock implementation for testing).
2018-06-16 00:22:44 +12:00
rob bygrave
6a9ab49ef0
#1427 - QueryCache should be cleared, if one of a dependent bean is updated
...
Propagation across cluster.
2018-06-16 00:09:03 +12:00
rob bygrave
96cc8d7605
#1427 - QueryCache should be cleared, if one of a dependent bean is updated
...
Initial work, does not include propagation across cluster.
2018-06-15 17:36:23 +12:00
rob bygrave
81c6d4601d
#1425 - Stateless update with OneToMany with SoftDelete and deleteMissingChildren = true ... does a hard delete
2018-06-14 16:09:45 +12:00
rob bygrave
d459807af7
#1402 - Refactor SQL Logging internals (io.ebean.SQL) such that it is easier to capture for testing/asserts
2018-06-01 09:19:26 +12:00