Roland Praml
3e2e84e8bf
Fixed DbMigration classes (put them in the right place)
2023-06-13 17:20:02 +02:00
Rob Bygrave
2929483b0d
Refactor ebean-core internal API - getters -> accessors
2023-06-01 22:05:53 +12:00
Rob Bygrave
430926c5a9
Remove deprecated Query setLoadBeanCache() - migrate to setBeanCacheMode()
...
Typically migrate to `.setBeanCacheMode(CacheMode.PUT)` or `.setBeanCacheMode(CacheMode.OFF)`
```java
/**
* Deprecated - migrate to use setBeanCacheMode(CacheMode.PUT) or other CacheMode.
* <p>
* When set to true all the beans from this query are loaded into the bean cache.
*/
@Deprecated
Query<T> setLoadBeanCache(boolean loadBeanCache);
```
2023-06-01 20:44:31 +12:00
Rob Bygrave
e5f7a28d80
Remove deprecated methods from ProfileLocation
...
These methods are no longer used.
2023-06-01 20:00:50 +12:00
Rob Bygrave
4878ca47b5
Remove deprecated ExtendedServer query methods - use query.usingTransaction() instead
...
Removing all the deprecated query methods from ExtendedServer. Migrate to passing
the explicit transaction to the query using query.usingTransaction() instead.
2023-06-01 19:45:17 +12:00
Rob Bygrave
15de44eef8
Remove deprecated MetaInfoManager.collectMetricsAsJson() - move to collectMetrics().asJson()
...
Removing these deprecated methods:
- collectMetricsAsJson() -> collectMetrics().asJson();
- collectMetricsAsData() -> collectMetrics().asData()
```java
/**
* Deprecated migrate to collectMetrics().asJson().
*/
@Deprecated
default ServerMetricsAsJson collectMetricsAsJson() {
return collectMetrics().asJson();
}
/**
* Deprecated migrate to collectMetrics().asData().
*/
@Deprecated
default List<MetricData> collectMetricsAsData() {
return collectMetrics().asData();
}
```
2023-06-01 19:35:03 +12:00
robin.bygrave
7635630808
Use Statement for truncate table and postgres version query
2023-05-26 15:03:13 +12:00
robin.bygrave
75e69a0a23
#3062 - DtoQuery may match the wrong constructor
...
When 2 or more Dto constructors clash by argument count
then we need to ignore those constructors.
2023-05-25 21:57:54 +12:00
robin.bygrave
4db1925328
No functional change, change use of BeanProperty.value() to BeanProperty.getValue()
...
Noting that value() currently calls through to getValue() hence
this is no real change. This is done because value() is also
a public method Property.value() [and this should probably
change to use getValueIntercept() rather than getValue()]
2023-05-17 15:31:52 +12:00
robin.bygrave
742f3b6dc4
ENH: Add captureMicros and whenCaptured to MetaQueryPlan
...
- captureMicros is the time taken to capture the specific query plan
- whenCaptured is the time when the bind values were taken
The DefaultQueryPlanListener logging will include these in the
output it logs
2023-05-16 13:47:27 +12:00
Rob Bygrave and GitHub
95fbdf37c6
Merge pull request #3021 from ebean-orm/feature/3020-forUpdateRefresh
...
#3020 Query.forUpdate() works like REFRESH
2023-04-06 14:11:43 +12:00
Rob Bygrave and GitHub
1d09c0864d
Merge pull request #3019 from ebean-orm/refactor/method-names-ObjectGraphOrigin
...
Refactor rename getters to accessors for ObjectGraphOrigin etc
2023-04-06 14:11:23 +12:00
Rob Bygrave and GitHub
02f7815e73
Merge pull request #3018 from ebean-orm/refactor/add-final-remove-public-platformHelpers
...
Refactor platforms adding final and removing public from sequence, history, encryption helpers
2023-04-06 14:11:02 +12:00
Rob Bygrave
1daad7af06
#3020 Query.forUpdate() works like REFRESH
...
Query.forUpdate() will load data into beans existing in the persistence context.
In discussion the thinking is that we can think of this as a bug fix.
2023-04-01 13:24:37 +13:00
Rob Bygrave
e51d6984fe
Refactor rename getters to accessors for BeanCollection, EntityBeanIntercept etc
2023-03-31 10:42:21 +13:00
Rob Bygrave
c2777b0e27
Refactor rename getters to accessors for ObjectGraphOrigin etc
2023-03-30 23:58:22 +13:00
Rob Bygrave
505f87c524
Refactor platforms adding final and removing public from sequence, history, encryption helpers
...
In theory no is customising these classes and probably should have their own copy of them if
they are doing do. Thus making these types final and package protected.
2023-03-30 23:40:53 +13:00
Rob Bygrave
55d7eb55d2
Add support for dynamic formula with includes
...
e.g.
DB.find(ChildPerson.class)
.select("name, coalesce(someBean, parent.someBean) as effectiveBean") // include parent
.findList();
2023-03-25 15:49:17 +13:00
Rob Bygrave
79fd689e9a
Add support for raw SQL SubQuery expressions IN,EQ,NE,GT,GE,LT,LE,EXISTS,Not IN, Not EXISTS
...
For these expressions the SQL SubQuery is not parsed by ebean and
just used as is.
2023-03-24 22:38:52 +13:00
Rob Bygrave
fcefd94086
Fix for #3005 - Regression, Invalid SQL with RawSql in 13.15.0 due to #2996
2023-03-22 23:18:18 +13:00
Rob Bygrave and GitHub
dca13db945
Merge pull request #3002 from ebean-orm/feature/improveLogging-markedAsDeleted
...
Improve the logging around MarkedAsDeleted
2023-03-21 20:43:12 +13:00
Rob Bygrave
bd318a5d85
Improve the logging around MarkedAsDeleted
2023-03-21 20:30:39 +13:00
3d7bebd244
FIX: DB.json().toBean(target) can update existing lists ( #85 )
...
* FIX: DB.json().toBean(target) can update existing lists
* remove sys.print, typo
---------
Co-authored-by: Roland Praml <roland.praml@foconis.de >
Co-authored-by: Juri Skrobko <juri.skrobko@foconis.de >
2023-03-17 11:04:53 +01:00
Rob Bygrave
a7d778d98b
Merge branch 'master' of github.com:ebean-orm/ebean
2023-03-17 18:14:17 +13:00
Rob Bygrave
19580ff83d
Bump SqlServer docker image to 2022-RTM-CU2-ubuntu-20.04
2023-03-17 18:14:02 +13:00
Rob Bygrave
184b82e1b2
Fix test TestRawSqlQuerySelect for SqlServer
...
The order by not supported here by SqlServer
2023-03-17 18:03:37 +13:00
Rob Bygrave
04e935acd0
#2998 - SQLServer, map java long to BIGINT for bitwise expressions
2023-03-17 17:54:25 +13:00
Rob Bygrave
142ffe925c
Fix test TestRawSqlQuerySelect to support multiple databases
2023-03-16 09:06:09 +13:00
Rob Bygrave and GitHub
4039c20462
Merge pull request #2996 from ebean-orm/buchtajz-query_select_bugs
...
Add support for specifying select clause with RawSql
2023-03-14 11:48:40 +13:00
Rob Bygrave and GitHub
6d43028fba
Merge pull request #2995 from ebean-orm/feature/config-isLoadModuleInfo
...
Change such that querybean generated class registration can be used with explicit class registration
2023-03-14 11:48:09 +13:00
Rob Bygrave
efcee7e739
Improve test asserts for lazy loading element collection
2023-03-10 21:33:58 +13:00
Rob Bygrave
523fe6ae54
#2946 - Support specify select clause for RawSql
2023-03-10 20:31:54 +13:00
Rob Bygrave
8ec031bfde
Merge branch 'query_select_bugs' of github.com:buchtajz/ebean into buchtajz-query_select_bugs
2023-03-10 19:38:26 +13:00
Rob Bygrave
a8cad4f3d9
Change such that querybean generated class registration can be used will explicit class registration
...
In DatabaseConfig.isAutoLoadModuleInfo() it only used the querybean generated class registration is classes.isEmpty(). Changing this so that it only uses the loadModuleInfo flag.
This means, unless loadModuleInfo is set to false the classes that register with ebean will be a combination of both the explicitly registered ones plus the classes from the querybean generated EbeanEntityRegister.
In addition, this changes the classes from List to Set.
2023-03-10 11:01:46 +13:00
Rob Bygrave
e6b0306bde
Fix test TestStdFunctions for Oracle which only supports 2 parameters with concat()
2023-02-25 01:06:40 +13:00
Rob Bygrave and GitHub
0659d7604c
Merge pull request #2980 from FOCONIS/fix-logger
...
FIX: do not format log messages, when no parameter was specified
2023-02-22 23:38:08 +13:00
rob
2e0dba3741
#2981 - ENH: Add profile-line-number-mode with options none | all | auto ... to control adding line numbers to profile locations
2023-02-22 23:02:42 +13:00
Roland Praml
56360f0fb3
use captureLogger
2023-02-22 09:20:04 +01:00
Roland Praml
d84f2eea58
FIX: do not format log messages, when no parameter was specified
2023-02-22 09:07:49 +01:00
rob
0b615a79cc
Add _ifPresent() expressions for GT, GE, LT, LE (follow up from #2768 )
2023-02-22 14:04:26 +13:00
rob
b0364f3c42
Use StackWalker for ProfileLocation and CallOrigin
2023-02-21 14:21:18 +13:00
buchtajz and GitHub
8c47ba89d1
Merge branch 'ebean-orm:master' into query_select_bugs
2023-02-21 00:04:39 +01:00
rob
ca6171f697
Ignore TestStdFunctions.concatEq for DB2
2023-02-14 22:39:26 +13:00
Rob Bygrave and GitHub
0292b4b558
Merge pull request #2912 from ebean-orm/wip/spi-txn-logging
...
Refactoring SpiLogger to better support conditional logging
2023-02-14 15:03:47 +13:00
rob
2c8ae16179
Update to use String format and Object varargs
2023-02-14 14:54:23 +13:00
Rob Bygrave and GitHub
381ac58eed
Merge pull request #2936 from FOCONIS/mem-leak-streaming-queries
...
BUG: Memory-leak on streaming queries when LoadBuffers are not aligned
2023-02-14 11:45:29 +13:00
rob
5882169641
Merge branch 'feature/StdExpressions'
2023-02-14 11:35:31 +13:00
Michal Buchtík
01a0cee3c2
patch RawSql query builder, fix tests
2023-02-10 12:17:40 +01:00
Michal Buchtík
f26feec3d9
Merge remote-tracking branch 'origin/master' into query_select_bugs
2023-02-10 09:33:28 +01:00
Rob Bygrave
65c76cb2c0
Fix test to support SqlServer using sequences
2023-02-10 14:22:11 +13:00