Rob Bygrave
b7e62df371
Refactor extract ebean-joda-time module - move joda ScalarTypes
...
Moves the joda-time ScalarTypes into a new ebean-joda-time module. Include
the ebean-joda-time module in the classpath, and the extra types will be
service loaded (by DefaultTypeManager).
2022-08-26 17:32:31 +12:00
Rob Bygrave
9984b53070
Refactor move BasicTypeConverter to ebean-core-type module
...
Doing this in preparation for moving the joda-type ScalarTypes into their own module
2022-08-26 15:21:30 +12:00
Rob Bygrave
4c13a3a779
Refactor move package - server.type.DataBind to server.bind, server.text.json -> server.json
...
The DataBind classes don't need to be in with server.type anymore.
The server.text.json package can just reduce package nesting.
2022-08-26 14:51:19 +12:00
Rob Bygrave
a13f581a65
Refactor ScalarTypeBaseDateTime, merge into ScalarTypeUtils both IsoJsonDateTimeParser and DecimalUtils
...
That is, merge the static util methods into ScalarTypeUtils
2022-08-26 13:15:55 +12:00
Rob Bygrave
f319ee66ad
Refactor move ScalarTypeBaseDateTime to ebean-core-type module
2022-08-26 13:02:42 +12:00
Rob Bygrave
13a913428e
DecimalUtils - remove unused methods converting between Instance and BigDecimal
2022-08-26 12:24:15 +12:00
Rob Bygrave
c5e8b217e3
Refactor ScalarType, remove convertFromMillis() method (no longer needed)
...
Due to the move and change of CsvReader using StringParser ScalarType no longer
needs that general convertFromMillis() method. Note that date and dateTime ScalarTypes
still retain this conversion method.
2022-08-25 22:37:47 +12:00
Rob Bygrave
26f0605d72
Refactor ScalarType methods from getters to accessors
2022-08-25 12:25:38 +12:00
Rob Bygrave
10c9b2addd
Remove ScalarType.isDateTimeCapable() ... (only used by CSV reader)
...
So the complexity cost doesn't justify itself against only being used
by CSV reader to validate when assigning a date/time format to a property
/ expression path.
2022-08-25 12:16:37 +12:00
Rob Bygrave
c7bd6c8bde
Support a naming convention function that can be applied to metrics names for reporting
...
For example, can apply a lower case underscore naming convention to the metrics names. This
can be done such that it doesn't have to be applied every time the metrics are collected and
reported.
2022-08-08 21:34:00 +12:00
Rob Bygrave
52e6c0c625
#2736 - findDto nonsupport setter chain (accessor style setters, both fluid style and non fluid style)
2022-07-05 10:37:55 +12:00
Rob Bygrave
745fbe883e
#2737 - Mapping of TimeZone doesn't have enough characters
2022-07-05 09:05:13 +12:00
Rob Bygrave
fa6fdf124d
Fix test BasicProfileLocationTest
2022-06-16 13:52:27 +12:00
Rob Bygrave
5be3b7717c
#2716 - Refactor ScalarType interface to make use of default methods
2022-06-13 22:38:15 +12:00
Rob Bygrave
4f3c9adf6f
#2695 - DDL Generation for @UniqueConstraint ignores the name - should be the index name when given
2022-05-16 22:06:14 +12:00
Rob Bygrave
244f336f54
#2647 - When Postgres + isAllQuotedIdentifiers true + using DataSourceConfig THEN datasourceConfig.addProperty("quoteReturningIdentifiers", false);
...
I think there is not a case where we do NOT want to do this. allQuotedIdentifiers + Postgres is almost not usable without this.
2022-05-03 10:15:07 +12:00
Rob Bygrave
2cf83278ea
#2677 - Change trimOnPut to be 10% of max or 1_000.
...
Can look to provide an explicit option via `@CacheBeanTuning` later.
2022-05-02 22:19:37 +12:00
Rob Bygrave
5c332286b6
#2677 - Add ReentrantLock for DefaultServerCache.runEviction() and trigger runEviction() via mutationCounter
...
If we get a lot of cache mutation (puts) between background trims then also trigger runEviction() in foreground using mutationCounter.
2022-05-02 21:48:58 +12:00
Rob Bygrave
d036edf7fd
#2677 - Fix for trim failing on mutation of lastAccessTime
...
Currently, lastAccessTime can mutate during cache trim processing. This fixes this issue by taking a copy of the lastAccessTime storing as lastAccessSort and using that for sorting for cache trim.
2022-05-02 20:31:10 +12:00
Rob Bygrave
5b9ca2933f
Fix: CompareTo when discriminatorString is null
...
- Fix for regression introduced by #2646 in version 13.3.1
- Replaces PR #2664
2022-04-21 09:53:06 +12:00
Rob Bygrave
a270caf605
Remove deprecated methods from BeanPersistRequest, BeanQueryRequest, BeanDeleteIdRequest
...
All removed methods are renamed. Migrate to use the renamed method.
2022-04-20 18:26:34 +12:00
Rob Bygrave
b2349bb044
Fix test InitDataSourceTest to use public API
2022-04-20 10:50:39 +12:00
Rob Bygrave
f5a779e18b
Refactor L2 cache tenant awareness - add TenantAwareCache
...
The design change is to use TenantAwareCache to deal with wrap/unwrap of tenant aware keys, removing any tenant awareness from the underlying cache implementations (DefaultServerCache, redis, hazelcast etc).
2022-04-07 15:26:21 +12:00
Rob Bygrave
e71e16c1ee
Refactor extract separate modules for each platform from ebean-api dbplatform
2022-03-30 17:11:36 +13:00
Roland Praml
7666775d1a
Suggested changes (no code change)
2022-03-28 14:39:12 +02:00
Rob Bygrave
426d314e63
Refactor tests, move internal type tests to ebean-core
2022-03-27 20:20:35 +13:00
Rob Bygrave
e3e5414157
Refactor tests, move some internal expression tests to ebean-core
2022-03-27 19:55:34 +13:00
Rob Bygrave
28088a5e54
Refactor tests, move some internal deploy tests to ebean-core
2022-03-27 17:44:43 +13:00
Rob Bygrave
2acdf2f4bf
Refactor tests, move some internal core tests to ebean-core
2022-03-27 17:06:52 +13:00
Rob Bygrave
785a027dd6
Refactor tests, move some cache tests to ebean-core
2022-03-27 16:49:28 +13:00
Rob Bygrave
88005dbe09
Refactor tests, move changelog tests
2022-03-25 18:44:24 +13:00
Roland Praml
c40b9738d1
No effective code change: Removed unused imports
2022-03-24 09:23:39 +01:00
Rob Bygrave
f58d6038c7
Move some unit tests from ebean-test back to ebean-core
2022-03-24 18:21:48 +13:00
Noemi Szemenyei
3c7555de36
Provide custom BackgroundExecutorWrapper to pass thread locals
...
(cherry picked from commit 336accf447 )
2022-03-11 13:31:50 +01:00
Rob Bygrave
e3a20a351d
#2582 - Fix for regression, BackgroundExecutor is bounded (since 12.6.2)
...
The change for #2121 brought in a regression where the scheduledExecutorService was used for processing ALL submitted tasks (not just scheduled ones) and is a bounded executor service. Previously non-scheduled tasks went to a "newCachedThreadPool" based executor service and with this change we are moving back to that (via restoring and using the DaemonExecutorService for those tasks).
2022-03-04 10:21:56 +13:00
rbygrave
eab56d323b
Refactor move tests from ebean-core to ebean-test
2021-09-08 22:49:23 +12:00
rbygrave
c1d57c6b10
Refactor tidy tests
2021-09-08 21:47:52 +12:00
rbygrave
93ff2ef2e4
#2359 - Rename internal methods - SpiEbeanServer
2021-09-08 15:25:18 +12:00
rbygrave
d389ac680f
#2359 - Rename internal methods - BeanDescriptor
2021-09-08 15:17:17 +12:00
rbygrave
d582e63c25
#2359 - Rename internal methods - STreeProperty
2021-09-08 14:41:12 +12:00
rbygrave
632f04c76b
#2359 - Rename plugin api methods with deprecation - Property
2021-09-08 14:04:31 +12:00
rbygrave
bc02eeac57
#2359 - Rename plugin api methods with deprecation - BeanType
2021-09-08 13:13:29 +12:00
rbygrave
01e07dd2be
#2358 - Rename BeanState methods with deprecation
2021-09-08 10:30:18 +12:00
rbygrave
66143280fa
#2357 - Update tests to move away from deprecated methods
2021-09-07 21:44:07 +12:00
rbygrave
e95442d8ec
#2357 - Update tests to use reference()
2021-09-07 18:13:03 +12:00
rbygrave
aafde53b81
#2357 - Update tests to use beanState()
2021-09-07 18:11:51 +12:00
rbygrave
0887480865
#2357 - Update tests to use Database from EbeanServer
2021-09-07 18:10:36 +12:00
rbygrave
4ff8df9538
Tidy tests for ServerConfig -> DatabaseConfig
2021-09-07 17:33:06 +12:00
rbygrave
70a967a3a7
Junit5 bump - ebean-core
2021-09-07 13:23:27 +12:00
rbygrave
a2f49a544c
#2355 - Rename methods in SpiServer with deprecation
2021-09-04 22:01:16 +12:00