Rob Bygrave
0100d024d9
#2750 #2751 SoftDeleted entity included via lazy loading (Jackson serialisation)
...
The effective fix is in DLoadContext, only allow includeSoftDeletes to be set from
the query when the query is SpiQuery.Mode.NORMAL (not a lazy loading query).
2022-07-27 22:25:10 +12:00
Rob Bygrave
bda0786924
#2760 - Add MetaInfoManager.metricsAsJson() ... to support conversion of collected metrics to json
2022-07-27 09:31:58 +12:00
Rob Bygrave
ac1e1757e8
#2748 - Fix partially loaded bean scenario with .setDisableLazyLoading(true) .setBeanCacheMode(CacheMode.PUT) // force query to hit database
2022-07-20 08:16:43 +12:00
Rob Bygrave
48404fc85d
#2748 - Fix setDisableLazyLoading(true) ... does not set fully loaded state [fully loaded bean scenario]
2022-07-20 07:55:42 +12:00
Rob Bygrave
9252e72581
#2748 - Fix such that .setLoadBeanCache(false) ... sets CacheMode.OFF
2022-07-20 07:45:20 +12:00
Rob Bygrave
88b6a60feb
#2730 - Secondary @OneToMany fetch query is not happening if the same Entity type is fetched
2022-07-06 20:19:41 +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
d20d276d56
#2728 - Fix for stateless update with orphanRemoval=true and softDelete
2022-07-04 12:22:27 +12:00
Rob Bygrave
fa6fdf124d
Fix test BasicProfileLocationTest
2022-06-16 13:52:27 +12:00
Rob Bygrave
583c5f74eb
Support Postgres JSONB/JSON with String - @DbJsonb String content;
2022-06-14 14:57:50 +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
e29d83a379
#2710 - Update PersistRequestBean with checkAllMutableProperties() and checkAnyMutableProperties()
2022-06-13 18:58:38 +12:00
Rob Bygrave
8301fd5e74
#2710 - JSONB fields are not considered dirty after modified in BeanPersistController preUpdate
2022-06-13 18:35:42 +12:00
Rob Bygrave and GitHub
c02ab7340c
Merge pull request #2708 from FOCONIS/fix-localtime
...
Part 1: Fix read/write/query LocalTime values
2022-06-09 12:00:06 +12:00
Noemi Praml
9c354919e5
refactoring
...
(cherry picked from commit 43e28c4f5c747cdda2e3547a8db593eab490ceec)
2022-05-31 10:49:09 +02:00
Noemi Praml
c8be59fd95
it fixes the test
...
(cherry picked from commit d2e21aa3dcbd4ae59dd8d1ff5404d94c298f087b)
2022-05-31 10:47:32 +02:00
Noemi Praml
bb9cfe9d0f
add support for findSingleAttributeSet
2022-05-24 11:09:56 +02:00
Rob Bygrave
0db93bc82d
No effective change - tidy BeanList etc, BeanCollectionHelpFactory to use specific CQueryCollectionAdd for List and Set
2022-05-18 17:33:08 +12:00
Rob Bygrave
7fbc1f8111
Postgres DDL - With Postgres table partitioning, add partition column to primary key
...
- Postgres DDL generation
- Using table partitioning
- There is a primary key defined that doesn't contain the partition column
In DDL generation, automatically add the partition column to the DB primary key.
2022-05-17 21:39:06 +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
b7d6374370
Improve error message when no platform providers are in the classpath
2022-05-16 18:47:48 +12:00
Rob Bygrave
36d589d4f3
#2691 - Improve logging summary when insert bean with no @Id ...
2022-05-16 11:30:36 +12:00
Rob Bygrave
a4df643d82
#2690 - Refactor internals, tidy SaveManyBeans
...
- Introduce hasOrderColumn field
- Add clearedParent flag to only clear the parent bean from persistence context once (not per detail bean)
2022-05-13 11:38:39 +12:00
Rob Bygrave
74174444bb
Bug - OneToMany orphanRemoval = true, replace collection adding back original collection entry
...
- Adding back a bean from the original collection
- Expect that bean to exist in the final result but, it's missing
Fix here is in SaveManyBeans to add a insertAllChildren and use ebi.setNew(); for beans to force them to insert for this case.
2022-05-12 23:14:26 +12:00
Rob Bygrave and GitHub
ebbef86def
Merge pull request #2626 from ebean-orm/wip/EntityBeanIntercept-interface
...
Support EntityBeanIntercept as an interface with InterceptReadWrite and InterceptReadOnly options
2022-05-03 14:15:49 +12:00
Rob Bygrave
1d4f2ad856
#2626 - Add final modifier to methods - For readOnly disableLazyLoad using Collections.EMPTY_LIST etc
2022-05-03 12:23:22 +12:00
Rob Bygrave
84042397b6
#2626 - For readOnly disableLazyLoad using Collections.EMPTY_LIST etc for reference collections
2022-05-03 12:12:47 +12:00
Rob Bygrave
d1b5400f2c
Merge branch 'master' into wip/EntityBeanIntercept-interface
2022-05-03 10:45:45 +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 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
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
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