Roland Praml
8d08d3e41d
Merge remote-tracking branch 'upstream/master'
...
# Conflicts:
# ebean-bom/pom.xml
# tests/test-kotlin/pom.xml
2022-05-02 16:15:18 +02:00
Roland Praml
5a2632e7ba
Merge branch 'master' of github.com:FOCONIS/ebean
2022-05-02 16:04:34 +02:00
Roland Praml
6890ef4334
More detailed exception on persist errors
2022-05-02 16:04:24 +02:00
Rob Bygrave and GitHub
ea5b4e9271
Merge pull request #2662 from ebean-orm/feature/deprecated-remove-Ebean
...
Remove deprecated Ebean, EbeanServer, EbeanServerFactory, ServerConfig migrate to DB, Database, DatabaseFactory, DatabaseConfig
2022-05-02 22:27:57 +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
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
Noemi Szemenyei
dcc17f7081
Merge remote-tracking branch 'upstream/master'
...
# Conflicts:
# ebean-bom/pom.xml
# ebean-kotlin/pom.xml
# tests/test-java16/pom.xml
# tests/test-kotlin/pom.xml
2022-04-28 08:17:46 +02: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 and Noemi Szemenyei
0c0484c56e
Fix: CompareTo when discriminatorString is null
2022-04-21 07:50:53 +02: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
Noemi Szemenyei
da2b14530b
Fix: in compareTo when discriminatorString is null
2022-04-20 15:33:21 +02: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
d34da06840
Remove deprecated Ebean, EbeanServer, EbeanServerFactory, ServerConfig migrate to DB, Database, DatabaseFactory, DatabaseConfig
2022-04-20 20:46:53 +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
b2349bb044
Fix test InitDataSourceTest to use public API
2022-04-20 10:50:39 +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 and GitHub
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
4dee827fda
Fix beanCache order by & clear did not work
2022-04-12 13:51:25 +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
Roland Praml
6412e060e6
Sort DeployInheritInfo, so that DDL is deterministic
2022-04-12 09:33:40 +02:00
Roland Praml
5024a69332
Merge remote-tracking branch 'upstream/feature/2641-ToStringBuilder'
2022-04-11 09:10:52 +02:00
Roland Praml
72d8a73aa7
merged
2022-04-08 16:19:53 +02:00
Rob Bygrave
5a7e8456e1
#2641 - Provide a decent default toString() implementation for entity beans
2022-04-08 17:35:27 +12: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 and GitHub
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 and GitHub
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 and GitHub
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