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
Roland Praml and Rob Bygrave
cf4d45befb
refactor: unwrap invocationTargetException ( #1718 )
2019-05-21 00:37:03 +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
9326c9c79e
Adjustment on #1711 , fix clearing of inactive transactions from thread local
...
Handles implicit transactions for update and delete queries plus delete
by id
2019-05-18 12:09:50 +12:00
rob bygrave
1042fdb280
Merge branch 'feature/1711-v2'
2019-05-18 11:43:51 +12:00
Roland Praml and Rob Bygrave
197056dbc5
Refactor: Ebean uses the MigrationVersion from the ebean-migration artifact ( #1713 )
2019-05-18 11:32:17 +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 and GitHub
205f1f5e89
Merge pull request #1704 from ebean-orm/feature/1701-v2
...
#1701 (v2) - Replace TransactionMap with HashMap in DefaultTransactionThreadLocal
2019-05-17 21:04:54 +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
c66e9547e1
#1705 - SpiTransactionProxy depth(int diff) ... does not pass on depth to underlying transaction
2019-05-16 22:44:09 +12:00
rob bygrave
73990e3fb7
#1701 (v2) - Replace TransactionMap with HashMap in DefaultTransactionThreadLocal
2019-05-16 22:26:11 +12:00
rob bygrave
f7920de3c2
#1698 No effective change - reformat
2019-05-16 20:27:16 +12:00
rob bygrave
3dd5069f5a
#1698 FIX for IAE "key can't be empty" in System.getProperty()
...
That is, assertEquals("${}", PropertyEval.eval("${}"));
... for when we load properties that include the "${}" placeholder
2019-05-16 20:26:45 +12:00
rob bygrave
c512eb564d
#1702 - Format only change
2019-05-16 20:07:43 +12:00
Rob Bygrave and GitHub
7f332e91ff
Merge pull request #1702 from FOCONIS/fix-mig-default-value
...
Fix: Migration when dbdefault is involved
2019-05-16 20:00:34 +12:00
Rob Bygrave and GitHub
8e9d644bc6
Merge pull request #1697 from ebean-orm/feature/1695-binary
...
#1695 - For MySql like remove the binary keyword + Add caseSensitiveCollation configuration option
2019-05-16 19:46:38 +12:00
rob bygrave
9da7c9468e
#1695 Add caseSensitiveCollation configuration option
...
This is really only to use with testing via
platform.isCaseSensitiveCollation() to determine
which asserts/tests apply (based on collation).
2019-05-15 16:19:12 +12:00
Roland Praml
906d5f04ad
FIX: Migration when default value was changed
2019-05-14 20:02:55 +02:00
rob bygrave
654c3f7f67
#1695 - For SQL Server like remove the binary collation (Latin1_General_BIN)
2019-05-12 15:22:08 +12:00
Roland Praml
579c1efcf6
Add tests and fixes in hashCode
2019-05-08 17:00:08 +02:00
Roland Praml
662f9cdeb3
fixed equals() method in ModifyAware collections.
2019-05-08 16:45:02 +02:00
rob bygrave
b4782425f8
#1695 - For MySql like remove the binary keyword
2019-05-08 23:38:25 +12:00
rob bygrave
2648423930
#1696 - Refactor - trim unnecessary whitespace around IN clause bind parameters
2019-05-08 23:22:13 +12:00
rob bygrave
4aa8a0dc63
#1694 - findList() with firstRows/maxRows adds "order by id" (even with orderById(false))
2019-05-03 14:33:42 +12:00
rob bygrave
9fdb375229
#1691 - Refactor io.ebean.Model to use a named database - support for use with non-default named database
2019-04-30 23:42:59 +12:00
Rob Bygrave and GitHub
7e6d059ef1
Merge pull request #1690 from ebean-orm/feature/1686
...
#1686 - Change the default JSON format to ISO8601 for date and datetime types (from epoch millis)
2019-04-30 20:18:20 +12:00
rob bygrave
856a3a6fdd
#1689 - ENH: Add query usingTransaction() and usingConnection()
2019-04-30 20:13:12 +12:00
Thibault Meyer
c5d761076a
Remove useless comparison test
...
The result of certain comparison tests can sometimes be inferred
from their context and the results of other comparisons. Inspect
the code to check whether the logic is correct, and consider
simplifying the logical expression.
Signed-off-by: Thibault Meyer <meyer.thibault@gmail.com >
2019-04-28 12:10:56 +02:00
rob bygrave
4bedefa494
Merge branch 'master' of github.com:ebean-orm/ebean
2019-04-28 09:51:08 +12:00
rob bygrave
a5e3a70921
#1685 DefaultServerCache expose hit and miss count to assist testing
...
Expose these counters to assist the testing of duel caches where
DefaultServerCache is used as the near cache.
2019-04-28 09:50:45 +12:00
Rob Bygrave and GitHub
f6f4368048
Merge pull request #1687 from thibaultmeyer/bugfix/implicit-conv-from-array-to-str
...
Fix implicit conversion from array to string
2019-04-28 00:38:23 +12:00
rob bygrave
e700f1c83c
#1685 Update ServerCacheFactory to support standard metrics collection
2019-04-27 23:22:26 +12:00
Thibault Meyer
b89371acd1
Fix implicit conversion from array to string
...
When converting an array to a readable string, use Arrays.toString
for one-dimensional arrays. This function iterate over the contents
of the array and produce human-readable output.
Signed-off-by: Thibault Meyer <meyer.thibault@gmail.com >
2019-04-27 13:06:02 +02:00
rob bygrave
6c88325dad
#1685 Update ServerCacheFactory to support standard metrics collection
2019-04-27 22:57:30 +12:00
rob bygrave
ecec966a85
#1686 - Change the default JSON format to ISO8601 for date and datetime types (from epoch millis)
2019-04-27 11:20:21 +12:00
rob bygrave
c46ac04c0a
#1684 - Fix JSON marshalling on LocalDate, sql.Date etc - explicit UTC
...
Make explicit use of UTC
2019-04-27 10:33:17 +12:00
rob bygrave
25e6d05542
#1685 - Add support for MetaCounterMetrics and refactor DefaultServerCache to use them
2019-04-27 00:34:45 +12:00
rob bygrave
28a70fa550
#1684 - ENH: Support ISO date format for JSON marshalling on LocalDate, sql.Date etc
2019-04-26 19:00:49 +12:00
rob bygrave
b4105ab5d0
#1683 - Refactor MetaQueryPlan and MetaOrmQueryMetric - rename getQueryPlanHash() to getSqlHash()
2019-04-26 12:55:40 +12:00
rob bygrave
65fa1c056b
#1681 - Support hitting L2 bean cache via ... findList() with idsIn() expression
2019-04-26 12:01:16 +12:00
rob bygrave
86436ac3ac
#1679 - ENH: Support enabling/disabling L2 cache by "region" at runtime
2019-04-24 15:41:07 +12:00
rob bygrave
ae228d6b0e
#1679 - ENH: Support enabling/disabling L2 cache by "region" at runtime
2019-04-24 14:00:22 +12:00
rob bygrave
d32559baf4
#1674 - For ProfileLocation use in constructors trim label <init> to init .... (for safe label)
2019-04-12 02:25:05 +12:00
rob bygrave
2639e799c5
#1673 - ENH: Support ProfileLocation on DtoQuery including via orm query.asDto()
2019-04-12 02:01:01 +12:00
rob bygrave
30ae435f33
#1672 - ENH: Add ebean.dumpMetricsOnShutdown=true ... for dumping metrics
2019-04-12 00:45:00 +12:00