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 and GitHub
797e1f4bd2
Merge pull request #2767 from ebean-orm/feature/2766-json-ref-bean
...
#2766 Explicitly specify disableLazyLoad on beans created from JSON by default
2022-08-03 20:36:19 +12:00
Rob Bygrave and GitHub
a14507e563
Merge pull request #2765 from ebean-orm/feature/2762-forUpdate-pagingList-count
...
#2762 - forUpdate is NOT included in query copy() method
2022-08-03 20:35:45 +12:00
Rob Bygrave and GitHub
732f0e13e2
Merge pull request #2745 from ebean-orm/feature/2733-rename-moduleInfoLoader
...
#2733 - Rename ModuleInfoLoader to EntityClassRegister and _Ebean$ModuleInfo to EbeanEntityRegister
2022-08-03 20:35:21 +12:00
Rob Bygrave
47b940f672
#2760 - Add ServerMetrics.asData() ... for consistency
2022-08-02 08:35:48 +12:00
Rob Bygrave
01d5aa8199
#2760 - Add ServerMetrics.asJson() ... to support conversion of collected metrics to json
2022-08-01 16:54:49 +12:00
Rob Bygrave
7474430a63
#2768 - ENH: Add eqIfPresent() - a helper expression for fluid style when some EQ are optional
2022-08-01 16:36:09 +12:00
Rob Bygrave
ed830aeb0c
#2766 - Explicitly specify disableLazyLoad on beans created from JSON (default)
...
- Beans created from JSON default to disableLazyLoad true
- Explicitly use new JsonReadOptions().setEnableLazyLoading(true) when lazy loading is needed
2022-08-01 15:43:08 +12:00
Rob Bygrave
bb77d6588a
#2762 - forUpdate is NOT included in query copy() method
...
The copy() method is used by findPagedList(), findIds(), findFutureList() etc.
2022-08-01 11:35:58 +12:00
Rob Bygrave
4ed5f91963
#2756 - Fix for Bug findSingleAttributeList o2m maxrows
...
Allow maxRows use in this case
2022-07-29 22:37:06 +12:00
Rob Bygrave
fa9e9be003
#2753 - Fix for, Bug findSingleAttributeList o2m distinct
2022-07-29 17:12:51 +12:00
Roland Praml
dbcc779731
Fix: toJson must use setIntercept if target bean is passed
2022-07-28 15:07:05 +02:00
Rob Bygrave
3c2b5f253f
Tidy DLoadContext only
2022-07-27 22:28:15 +12:00
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
1d9db88050
#2733 - Rename ModuleInfoLoader to EntityClassRegister and _Ebean$ModuleInfo to EbeanEntityRegister
2022-07-11 15:35:46 +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