Commit Graph
300 Commits
Author SHA1 Message Date
Rob BygraveandGitHub 2df6f2e5fb Merge pull request #2770 from ebean-orm/feature/sqlquery-useTransaction
Add SqlQuery usingTransaction() for consistency and deprecate ExtendedServer API
2022-08-09 11:59:10 +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 BygraveandGitHub 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 4050d5e900 Add SqlQuery usingTransaction() for consistency and deprecate ExtendedServer API
- The ExtendedServer API is replaced by use of query usingTransaction()
- Add SqlQuery usingTransaction() for consistency with Query and DtoQuery
2022-08-02 15:35:00 +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 4bdcd49eab Javadoc tidy for Database and DB 2022-07-29 16:46:18 +12:00
Rob Bygrave 7a0de51721 Javadoc tidy for Database and DB 2022-07-29 16:39:13 +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 6698dda8ae Improve Javadoc only for InterceptReadOnly and InterceptReadWrite 2022-07-20 10:45:27 +12:00
Rob Bygrave 1cb011df5b Improve Javadoc only for EntityBeanIntercept and InterceptReadOnly 2022-07-20 10:38:02 +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 283e0b66fa #2734 - maven build - excluding maven descriptor (pom and properties) from built artifacts 2022-07-04 17:53:28 +12:00
Rob Bygrave 403556d8b2 DDL - Refactor DDL for Postgres and YugabyteDB to just create a default partition table
Removes the need and use of  PostgresPlatform.tablePartitionsExist() and PostgresPlatform.tablePartitionInit() altogether.
2022-06-14 16:00:54 +12:00
Rob Bygrave 9aa7ae79e2 #2713 - Improve javadoc of Finder, BeanFinder, BeanRepository - deprecate use of BeanFinder server field (migrate to database) 2022-06-09 13:26:48 +12:00
Noemi Praml bb9cfe9d0f add support for findSingleAttributeSet 2022-05-24 11:09:56 +02:00
Rob Bygrave 74b4994221 #2701 -[DDL] Postgres DDL generation for table partitioning with schema - helper method to add partitions does not work
This also removes the helper partition_init() stored function as it isn't really needed now that postgres has default partition support (since PG11 actually, partition_init predates PG11).
2022-05-23 20:39:45 +12: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 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 a70461d779 Update InterceptReadWrite with file content diff detection 2022-05-03 10:46:22 +12:00
Rob Bygrave d1b5400f2c Merge branch 'master' into wip/EntityBeanIntercept-interface 2022-05-03 10:45:45 +12:00
Rob BygraveandGitHub 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
Jonas PöhlerandNoemi Szemenyei 4d7a3d135c FIX: StackOverflowError when using recursive relation within Map
(cherry picked from commit d06bc13b4e1e421546f4997900d5fdc6aa980257)
2022-04-26 13:53:51 +02: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 e1b9bf62a3 NodeUsageCollector migrate from using finalize() to Cleaner 2022-04-21 08:40:00 +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 d34da06840 Remove deprecated Ebean, EbeanServer, EbeanServerFactory, ServerConfig migrate to DB, Database, DatabaseFactory, DatabaseConfig 2022-04-20 20:46:53 +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 d6ee67cf4e Remove deprecated methods from BeanPersistRequest, BeanQueryRequest, BeanDeleteIdRequest
All removed methods are renamed. Migrate to use the renamed method.
2022-04-20 18:29:55 +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 BygraveandGitHub 2e799be9e3 Merge pull request #2658 from ebean-orm/feature/deprecated-SpiServer
Remove deprecated methods from SpiServer, migrate getServerConfig() -> config() etc
2022-04-20 18:09:00 +12:00
Rob BygraveandGitHub 3863fa5fc6 Merge pull request #2657 from ebean-orm/feature/deprecated-FetchConfig
Remove deprecated methods from FetchConfig, migrate new FetchConfig().query(50) -> FetchConfig.ofQuery(50)
2022-04-20 18:08:38 +12:00
Rob Bygrave 2490562918 Remove deprecated methods from SpiServer, migrate getServerConfig() -> config() etc
All removed methods are renamed. Migrate to use the renamed method.
2022-04-20 18:07:16 +12:00
Rob Bygrave a4fc61549f Remove deprecated methods from FetchConfig, migrate new FetchConfig().query(50) -> FetchConfig.ofQuery(50) 2022-04-20 18:02:10 +12:00
Rob Bygrave 354b76e698 Remove deprecated methods from Pairs, migrate setConcatSeparator() -> concatSeparator() 2022-04-20 17:49:02 +12:00
Rob Bygrave f01e60094f #2655 - Remove JndiDataSourceLookup - app perform JNDI lookup if needed 2022-04-20 17:45:25 +12:00
Rob Bygrave 0969e1427b ebean-api module-info, requires static jackson databind (as optional) 2022-04-20 11:01:10 +12:00
Roland Praml 669d004d1b Fix: Setting file with same content should not make bean dirty
(cherry picked from commit 62c4acd36a)
2022-04-14 15:12:45 +02:00
Rob BygraveandGitHub 45003b3d5f Merge branch 'master' into wip/EntityBeanIntercept-interface 2022-04-12 21:09:58 +12:00
Rob BygraveandGitHub 2aba1835f1 ebean-test - Fix AutoConfigureForTesting to skip configuration for non-default DatabaseConfig (#2644)
#2644 - ebean-test - Fix AutoConfigureForTesting to skip configuration for non-default DatabaseConfig
2022-04-12 17:36:25 +12:00
Rob Bygrave 6d6e417c94 #2641 - toString() - add tests for max beans and max content 2022-04-11 12:27:09 +12:00
Rob Bygrave be2466003d #2641 - toString() - addCollection() firstElement change 2022-04-08 22:30:00 +12:00
Rob Bygrave 183b601be8 #2641 - toString() - Change BeanCollection toString() implementations, suppress unloaded BeanCollections 2022-04-08 18:53:57 +12:00
Rob Bygrave 5a7e8456e1 #2641 - Provide a decent default toString() implementation for entity beans 2022-04-08 17:35:27 +12:00
Rob Bygrave 1c749e55c6 Fix javadoc in DB 2022-04-07 18:45:19 +12:00
Rob Bygrave ff257a272b Remove deprecated methods on ServerCache getHitRatio() -> hitRatio(), getStatistics() -> statistics() 2022-04-07 17:03:04 +12:00