rob bygrave
bf20449fb5
Merge branch 'circular_saves_bugs' of https://github.com/tobias-/ebean into tobias--circular_saves_bugs
2019-06-10 21:03:55 +12:00
Rob Bygrave and GitHub
6af5fae8e9
#1727 - Refactor internals to use Instant for json parse on date time types ( #1728 )
2019-06-10 16:16:04 +12:00
rob bygrave
e26a38ecaa
#1727 - No effective change, simplify DefaultServer.createEntityBean()
2019-06-10 16:14:12 +12:00
rob bygrave
1cdf68f1c0
#1727 - No effective change, tests with static imports
2019-06-10 16:13:19 +12:00
jonasPoehler and Rob Bygrave
2923dd1d96
Bugfix/create entity bean unload ( #1729 )
...
* #1726 Add a testcase to reveal wrong behaviour of createEntityBean
* #1726 FIX: createEntityBean must not unload properties for "new" beans
(cherry picked from commit 270721bdb54373a83ef00b19a3c35da50f2a2bf5)
2019-06-10 16:09:12 +12:00
rob bygrave
385cc76e34
#1724 - Fix, UtilDateTimeParser - date time parsing with nanos precision
2019-06-04 22:20:28 +12:00
Snōwball and Rob Bygrave
c14cb4b85e
Add (failing) java 11 to travis - date time parsing with nanos precision ( #1724 )
...
* Add (failing) java 11 to travis
* Extra test-case for date parser
2019-06-04 21:56:25 +12:00
Snōwball
52644647e4
Add another test case for circular dependencies
2019-05-27 11:14:48 +02:00
Snōwball
3bf9dd6743
Testcase for ebean with circular dependences
...
1. While the javax.persistance api discourages the use of bidirectional
cascades, it does not prohibit them. They're very useful and natural
if you think of the database as a graph instead of a tree.
test case 1 (testCircularCascade) tests this.
2. Second test case fetches the child, but saves the parent. If used like
that, the child will not have it's changes saved.
2019-05-23 16:38:55 +02:00
rob bygrave
aececa2199
[maven-release-plugin] prepare for next development iteration
2019-05-22 22:23:33 +12:00
rob bygrave
b4e22a4ca7
[maven-release-plugin] prepare release ebean-11.39.1
ebean-11.39.1
2019-05-22 22:23:19 +12:00
rob bygrave
9b8b4414c4
Bump agent and ebean-migration
2019-05-22 22:21:35 +12:00
rob bygrave
b8fd2c7a02
Bump to 11.39.1-SNAPSHOT
2019-05-22 21:46:49 +12:00
rob bygrave
a94f5d74ca
No effective change - add test for select formula with positioned parameters
2019-05-21 16:59:39 +12:00
rob bygrave
3829613c37
#1717 #1721 - Fix for table touch with query cache clear
2019-05-21 09:17:07 +12:00
Roland Praml and Rob Bygrave
0762eaf0ab
changed test to detect issue #1717 ( #1721 )
2019-05-21 09:12:43 +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
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
2b1b4af7a2
Merge pull request #1710 from FOCONIS/sqlserver-platform-test
...
New test for SqlServerPlatform
2019-05-18 09:48:59 +12:00
Rob Bygrave and GitHub
4218b8a2e8
Merge pull request #1708 from FOCONIS/refactor-tests-idtype
...
Refactor Tests: Check idType instead of assuming idType for a platform
2019-05-18 09:46:40 +12:00
Roland Praml
fe7d73a4a4
New test for SqlServerPlatform
2019-05-17 18:07:24 +02:00
Roland Praml
81e86b07e3
Refactor Tests: Check idType instead of assuming idType for a platform
2019-05-17 16:38:25 +02:00
rob bygrave
910c04e373
Add sponsorship from timerbee.de
2019-05-17 21:08:44 +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
a1a6d2b725
Fix test TestExecuteComplete
2019-05-17 14:56:35 +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
1d363776ec
No effective change - refactor rename in test for StartMySql
2019-05-16 20:08:06 +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
fa5ce9cbba
#1695 Add StartMyServer - docker mysql with collation options
...
- Adjust TestWhereLikeWithSlash ignoring slash escaping assert for mysql (due to dependency on no_backslash_escapes setting)
2019-05-16 16:55:05 +12:00
rob bygrave
b7905daeb5
#1695 Fix case sensitive builtin sql server proc
...
- Update main.StartSqlServer to use updated ebean-test-docker with collation support
2019-05-16 15:36:22 +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
9eee224e03
migration scripts
2019-05-14 20:05:24 +02: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