Rob Bygrave
20f6a659fe
#2959 - Improve logging for lazy loading error due to "markAsDeleted"
2023-02-07 19:59:33 +13:00
Roland Praml
371f50fb4d
NEW: ExpressionList has clear() method
2023-01-23 11:33:29 +01:00
Roland Praml
9ef59e359b
Removed supportsSelect (dead code)
2023-01-13 13:43:41 +01:00
Rob Bygrave
95512d4851
#2906 - Tidy LimitOffsetSqlLimiter
2022-12-01 22:27:57 +13:00
Rob Bygrave
37ba0b63e4
#2907 - Promote Db2SqlLimiter to be AnsiSqlRowsLimiter and move to ebean-api module
2022-12-01 22:18:16 +13:00
Rob Bygrave
22a5bd9b9d
#2906 - Refactor tidy SqlLimiter implementations
2022-12-01 21:39:00 +13:00
Serhii Dakhnii
3277fe81a1
Fixed mandatory LIMIT generation in case of firstRow>0
2022-11-30 21:36:08 +02:00
Rob Bygrave
e87a06a713
#2894 - Lack of setNullParameter() functionality on io.ebean.DtoQuery interface
2022-11-21 17:00:55 +13:00
Rob Bygrave
dd7605ac3a
#2888 - DatabaseFactory.create() fails with java.lang.InstantiationError: io.ebean.bean.EntityBeanIntercept in multi-module gradle setup
2022-11-15 14:50:34 +13:00
Rob Bygrave
47dfbb6157
#2864 - Not advertise services configurable via DatabaseConfig.putServiceObject() that are "internal"
...
"internal" meaning that in terms of module-path they are not in a properly exported package. For example,
they are in a subpackage of io.ebeaninternal
2022-11-10 13:11:08 +13:00
Rob Bygrave and GitHub
013123c1a7
Merge pull request #2864 from FOCONIS/feature/override-service-objects
...
NEW: Override service objects with DatabaseConfig.putServiceObject
2022-11-10 13:05:22 +13:00
Rob Bygrave
0a61852711
#2847 - Add support for Sub-query EQ, NE, LT, LE, GT, GE expressions
2022-11-03 00:22:48 +13:00
Rob Bygrave
dd0ed8ea76
#2873 - Query Beans: Support more TQProperty's as target value for inRangeWith()
2022-11-02 17:35:00 +13:00
Roland Praml
f8c6a3c960
NEW: Ovverride service objects with DatabaseConfig.putServiceObject
2022-10-25 10:28:55 +02:00
Noemi Praml
c855df8b8d
javadoc
2022-10-18 07:59:19 +02:00
Rob Bygrave
7df168f232
ENH: Add Transaction.rollbackAndContinue()
...
Typically useful for handling DuplicateKeyException where we expect
DuplicateKeyException to be thrown and catch it with the intention of
continuing processing using the same transaction.
Note that some databases like Oracle do not require this explicit
rollback() and would work without the rollbackAndContinue(). Postgres
in particular requires the rollback() call on the underlying connection
such that we can continue using that transaction/java.sql.Connection.
Note that in the existing test we can see that rollbackAndContinue()
is pretty close to being syntactic sugar. I think adding rollbackAndContinue()
is justified and complements the existing commitAndContinue().
2022-09-01 17:08:11 +12:00
Rob Bygrave
e3e30cafdd
Refactor tidy error and log messages - part 2
2022-08-27 17:15:08 +12:00
Rob Bygrave
c5e8b217e3
Refactor ScalarType, remove convertFromMillis() method (no longer needed)
...
Due to the move and change of CsvReader using StringParser ScalarType no longer
needs that general convertFromMillis() method. Note that date and dateTime ScalarTypes
still retain this conversion method.
2022-08-25 22:37:47 +12:00
Rob Bygrave
efe80a534c
Extract CsvReader - remove built in date, time, dateTime parsing - use StringParser instead
...
Just always use our own StringParser lambda function instead for parsing date, time and dateTime types.
2022-08-25 22:09:38 +12:00
Rob Bygrave
1aac01ead0
Extract CsvReader - move DefaultCsvCallback and add module-info
2022-08-25 17:49:11 +12:00
Rob Bygrave
216c43eea6
Extract CsvReader into separate ebean-csv-reader module
2022-08-25 17:25:49 +12:00
Rob Bygrave and GitHub
4b11147b83
Merge pull request #2801 from ebean-orm/feature/drop-feature-OnQueryOnly
...
Remove the OnQueryOnly (rollback) feature
2022-08-25 12:30:16 +12:00
Rob Bygrave
10c9b2addd
Remove ScalarType.isDateTimeCapable() ... (only used by CSV reader)
...
So the complexity cost doesn't justify itself against only being used
by CSV reader to validate when assigning a date/time format to a property
/ expression path.
2022-08-25 12:16:37 +12:00
Rob Bygrave
96b674114c
Remove the OnQueryOnly (rollback) feature
...
The better approach these days is to use the read-only datasource with autoCommit
2022-08-25 11:26:55 +12:00
Rob Bygrave
456086fb3c
Refactor DatabasePlatform - rename getters to accessors
...
Although this is public API these getters are not expected to be used
by application code so, I feel comfortable making this change.
2022-08-25 10:34:39 +12:00
Rob Bygrave
341b9a7449
Refactor DatabasePlatform - remove unused method tableExists()
2022-08-25 10:23:14 +12:00
Rob Bygrave
6c7cedc1f1
#2799 - Remove unused DatabasePlatform.treatEmptyStringsAsNull
2022-08-25 10:19:11 +12:00
Rob Bygrave
c297ebda5a
No effective change, fix typo in DatabasePlatform variable name
2022-08-23 16:09:45 +12:00
Rob Bygrave
4252445eb4
Use AppLog and System.Logger for logging - static imports
2022-08-23 15:18:46 +12:00
Rob Bygrave
a23f241fff
Use AppLog and System.Logger for logging rather than slf4j-api
...
The avaje-applog-slf4j dependency means this is still using
slf4j-api for implementation. Remove that dependency and
service load the desired implementation.
2022-08-18 22:44:31 +12:00
Rob Bygrave
6c15115530
#2786 - Support logging Ebean version unknown
...
We don't really care if we can't determine the version so only log when we can read it.
2022-08-17 17:42:39 +12:00
Rob Bygrave
51d2f52d19
#2782 - Support MariaDB jdbc driver update - Batched JDBC SQLException translation, SqlRow BLOB reading
...
- Batched JDBC SQLException translation - Need to dig into nested exception to get cause error state
- SqlRow BLOB reading - BLOB can come as LONGVARBINARY (TestRawSqlBuilder)
- Fix test for history using system time (TestHistoryInsert)
- Fix SqlQueryCancelTest
- Fix TestSqlUpdateExceptions
2022-08-17 17:25:28 +12:00
Rob Bygrave
d703709f14
#2784 - Correct documentation for TQRootBean.findSingleAttribute with @Nullable
2022-08-12 15:50:17 +12:00
Rob Bygrave and GitHub
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 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
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