Rob Bygrave
1cd319c495
#2677 - Add try catch around DefaultServerCache.runEviction()
...
If there is an unexpected error we expect it to be temporary and want runEviction() to keep executing.
2022-05-02 20:51:33 +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
4d4f8e2c4b
Modify DefaultOrmQuery to have non-final copy() methods to allow ebean-mocker to be updated
2022-05-02 18:01:25 +12:00
Rob Bygrave
45233e96ab
#2673 - Bug introduced in 13.3.1 via #2652 - incorrect binding of history query with SQL2011 standards based queries
2022-04-27 22:48:02 +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
cacbee5fd5
Refactor tidy NodeUsageCollector, remove unused loadProperty and unnecessary WeakReference for State.listener
2022-04-21 08:59:53 +12:00
Rob Bygrave
4d21fbfcf8
#2663 - No effective change - Tidy Query interface with default methods
2022-04-20 21:49:06 +12:00
Rob Bygrave
76b02ff56a
Tidy internals, use cls.getDeclaredConstructor().newInstance();
2022-04-20 21:42:09 +12:00
Rob Bygrave
846afba724
Remove incorrect @Deprecated from internal DefaultOrmQuery
2022-04-20 21:14:44 +12:00
Rob Bygrave
50e13c4c99
Tidy imports only on DeleteIdRequest
2022-04-20 18:50:47 +12:00
Rob Bygrave
e20a2269ae
Remove deprecated methods from BackgroundExecutor, migrate executePeriodically() -> scheduleWithFixedDelay()
...
All removed methods are renamed. Migrate to use the renamed method.
2022-04-20 18:34:33 +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
ffb292dcd5
Remove deprecated methods from Transaction, migrate setBatchGetGeneratedKeys() -> setGetGeneratedKeys() etc
...
All removed methods are renamed. Migrate to use the renamed method.
2022-04-20 18:15:40 +12:00
Rob Bygrave
f01e60094f
#2655 - Remove JndiDataSourceLookup - app perform JNDI lookup if needed
2022-04-20 17:45:25 +12:00
Rob Bygrave
7a17cd0797
Tidy DefaultDbSqlContext, remove excess space from sql left join, tidy whitespace
2022-04-19 15:44:08 +12:00
Rob Bygrave
756e3e4a1c
#2651 - @OneToOne with @History, add fix and update tests
...
Effectively Ebean internally needs to keep a count on the number of times AS OF predicates are added (to joins + top level table). This change moves keeping that count for all joins to DbSqlContext.
2022-04-19 15:02:50 +12:00
Rob Bygrave
493e2d7463
Merge pull request #2646 from FOCONIS/sort-inherit
...
Produce deterministic DDL if @Inheritance is used
2022-04-13 10:29:57 +12:00
Roland Praml
8c800e992d
Fix beanCache order by & clear did not work
...
(cherry picked from commit 4dee827fda )
2022-04-12 13:51:49 +02:00
Roland Praml
3179aa23ea
Sort DeployInheritInfo, so that DDL is deterministic
...
(cherry picked from commit 6412e060e6 )
2022-04-12 09:43:16 +02:00
Rob Bygrave
ff257a272b
Remove deprecated methods on ServerCache getHitRatio() -> hitRatio(), getStatistics() -> statistics()
2022-04-07 17:03:04 +12:00
Rob Bygrave
71892fd2b5
Organise imports only
2022-04-07 16:44:02 +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
daf5220766
#2635 Remove deprecated methods from Database - createSqlQuery() -> sqlQuery(), createSqlUpdate() -> sqlUpdate()
2022-04-06 22:36:31 +12:00
Rob Bygrave
c7ad5c5981
#2636 - Remove deprecated @CreatedTimestamp and @UpdateTimestamp, migrate to @WhenCreated / @WhenModified
2022-04-06 22:17:33 +12:00
Rob Bygrave
ed339c3834
Merge pull request #2632 from ebean-orm/feature/deprecated_SqlUpdate
...
Remove deprecated methods in ebean-api - SqlUpdate
2022-04-06 21:34:12 +12:00
Rob Bygrave
741873d077
Merge pull request #2631 from ebean-orm/feature/deprecated_SqlQuery
...
Remove deprecated methods in ebean-api - SqlQuery
2022-04-06 21:33:40 +12:00
Rob Bygrave
2689376847
Merge pull request #2629 from ebean-orm/feature/deprecated-remove_Meta_Metric_Plugin
...
Remove deprecated methods from ebean-api meta metric and plugin packages
2022-04-06 21:32:35 +12:00
Rob Bygrave
8636888d65
Remove deprecated methods in ebean-api - SqlUpdate
...
migrate from -> to
setParams() -> setParameters()
setNextParameter() -> setParameter()
2022-04-06 20:49:23 +12:00
Rob Bygrave
9bb307cce2
Remove deprecated methods in ebean-api - SqlQuery
2022-04-06 20:45:24 +12:00
Rob Bygrave
495af7ae4a
Remove deprecated methods in ebean-api - plugin BeanType. Migrate getFoo() -> foo()
...
These methods are deprecated getters, migrate to the associated accessor method.
2022-04-06 20:09:07 +12:00
Rob Bygrave
e7dd5570a5
Remove deprecated methods in ebean-api - meta, metric, plugin. Migrate getFoo() -> foo()
...
These methods are deprecated getters, migrate to the associated accessor method.
2022-04-06 18:32:52 +12:00
Rob Bygrave
48d7e79b16
Remove deprecated findLargeStream(), migrate to findStream()
...
findLargeStream() became no longer become needed due to improvements in the persistence context. Migrate to just use findStream() instead.
2022-04-06 18:17:25 +12:00
Rob Bygrave
c4a3f43e0d
#2623 - CurrentTenantProvider called even when table has no tenantId column specified
2022-03-31 16:54:45 +13:00
Rob Bygrave
7dca282eb6
Bump to 13.0.0-SNAPSHOT
2022-03-31 14:04:54 +13:00
Rob Bygrave
472db65ac6
Adding requires io.avaje.classpath.scanner;
2022-03-31 09:00:16 +13:00
Rob Bygrave
64e4e674ac
ebean-core - Adding requires static com.fasterxml.jackson.annotation;
2022-03-31 08:51:51 +13:00
Rob Bygrave
24d8f38b1d
#2374 - Bump to Java 11 and module-path
2022-03-31 08:42:14 +13:00
Rob Bygrave
e71e16c1ee
Refactor extract separate modules for each platform from ebean-api dbplatform
2022-03-30 17:11:36 +13:00
Rob Bygrave
4cad515110
#2619 - Lack of setNullParameter() functionality on io.ebean.SqlQuery interface
2022-03-29 22:41:36 +13:00
Roland Praml
ffeb630e7e
JsonContext accepts a bean as target
2022-03-28 15:38:44 +02:00
Rob Bygrave
17f408681c
No functional change - final methods on internal RsetDataReader
2022-03-24 12:01:22 +13:00
Roland Praml
3e4cc3b3d6
Add tablespace support for DB2
2022-03-22 17:03:38 +01:00
Rob Bygrave
baddc76961
Refactor tidy grammar in server/expression classes
2022-03-22 16:48:47 +13:00
Roland Praml
eb1ed0bdd0
DbColumDefault must be returned although if individual columnDefinition is specified (cases no DDL change)
...
We support optional platform columnDefinitions now. E.g. "db2;clob(64M);" - so we must not ignore @DbDefault for all other platforms
2022-03-17 13:07:52 +01:00
Rob Bygrave
92e85e32a2
#2598 - H2 + @Lob String fails with - Error[Value too long for column "CHARACTER VARYING": "... (1048577)" [22001-210]]
2022-03-16 22:13:52 +13:00
Rob Bygrave
327f25c568
No functional change - refactor tidy dealing with some internal warnings
...
protected not needed on final classes
2022-03-16 18:51:12 +13:00
Noemi Szemenyei
edb6a0ebe2
performance boost list --> set
...
(cherry picked from commit 2478aded70 )
2022-03-15 13:21:10 +01:00
Noemi Szemenyei
826b507b77
Suggested fix
...
(cherry picked from commit 52ca271a13 )
2022-03-15 13:21:02 +01:00
Rob Bygrave
71fce1b4c5
#2575 Tidy up for [DDL-ClickHouse] fixes for ClickHouse platform
2022-03-14 16:53:51 +13:00
Rob Bygrave
db60065389
Merge branch 'ddl-clickhouse' of https://github.com/FOCONIS/ebean into FOCONIS-ddl-clickhouse
2022-03-14 16:51:27 +13:00