Rob Bygrave
e71be4e1b1
Deprecate order() methods on Query, ExpressionList - migrate to orderBy()
...
Unfortunately we have order() and orderBy() methods which do the
same thing. I have decided to deprecate the order() ones in
favour of the orderBy() methods so that ultimately we will end
up with less methods and I think orderBy() is the correct choice.
Apologies for the migration pain here.
2023-06-01 21:21:39 +12:00
Rob Bygrave
6a2d0c233a
No functional change, Expr internal reuse of factory() method
2023-06-01 20:56:13 +12:00
Rob Bygrave
bac7cd1ee7
Remove deprecated Query Bean fetchAll() - migrate to fetch()
...
```java
/**
* Deprecated in favor of fetch().
*/
@Deprecated
public final R fetchAll() {
return fetch();
}
```
2023-06-01 20:48:13 +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
f21caa0755
Remove deprecated ExpressionList.setOrderBy() - migrate to orderBy()
...
Migrate to `.orderBy(String orderBy)`
```java
/**
* Deprecated migrate to {@link #orderBy(String)}
*/
@Deprecated
Query<T> setOrderBy(String orderBy);
```
2023-06-01 20:34:04 +12:00
Rob Bygrave
4c47a84daf
Remove deprecated DatabaseConfig.defaultOrderById
...
Should no longer be used / set to true.
```java
/**
* Deprecated - look to have explicit order by. Sets the default orderById setting for queries.
*/
@Deprecated
public void setDefaultOrderById(boolean defaultOrderById) {
this.defaultOrderById = defaultOrderById;
}
```
2023-06-01 20:09:14 +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
f52a18989c
Remove deprecated BeanFinder.server, migrate to BeanFinder.database
2023-06-01 19:54:39 +12:00
Rob Bygrave
f415ee22b8
Update javadoc for ExtendedServer
2023-06-01 19:51:31 +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 and GitHub
59a3766a53
Merge pull request #3087 from ebean-orm/deprecated/collectMetricsAsJson
...
Remove deprecated MetaInfoManager.collectMetricsAsJson() - move to co…
2023-06-01 19:36:04 +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
Rob Bygrave
5ae9942dd5
Remove unused and empty ebean-kotlin module
...
It never got used, may as well clean up and remove it.
2023-06-01 19:26:17 +12:00
Rob Bygrave and GitHub
bf375f1065
Merge pull request #3086 from ebean-orm/feature/move-components
...
Remove unused and empty ebean-kotlin module
2023-06-01 19:22:45 +12:00
Rob Bygrave
510e129ff6
Remove unused and empty ebean-kotlin module
...
It never got used, may as well clean up and remove it.
2023-06-01 19:22:16 +12:00
Rob Bygrave and GitHub
1c32b9b0bc
Merge pull request #3085 from ebean-orm/feature/move-components
...
Moved - ebean-autotune, ebean-csv-reader, ebean-joda-time, ebean-jack…
2023-06-01 19:19:39 +12:00
Rob Bygrave
f25a20ff90
Moved - ebean-autotune, ebean-csv-reader, ebean-joda-time, ebean-jackson-jsonnode, ebean-externalmapping-xml
...
These modules have all been moved to ebean-component git repo.
These are all optional modules and will be released at a
slower cadence.
2023-06-01 19:17:14 +12:00
Rob Bygrave and GitHub
0ba6753c8c
Merge pull request #3084 from ebean-orm/fix/jakarta-transaction
...
Fix javax-to-jakarta support for jakarta.transaction
2023-06-01 08:26:54 +12:00
Rob Bygrave
7efef027c0
Fix javax-to-jakarta support for jakarta.transaction
2023-06-01 08:24:14 +12:00
Rob Bygrave
3a84695130
Version 13.18.0
13.18.0
2023-05-31 22:06:30 +12:00
Rob Bygrave and GitHub
3f6d6908e2
Merge pull request #3081 from ebean-orm/feature/bump-migration-2
...
Bump ebean-migration to 13.9.0 - changes API for checkState()
2023-05-31 20:53:24 +12:00
Rob Bygrave
9f4bf6103f
Bump ebean-migration to 13.9.0 - changes API for checkState()
...
Code using ebean-migration checkState() methods needs to change
as those methods now return a new MigrationResource interface type
2023-05-31 20:51:28 +12:00
Rob Bygrave and GitHub
ad7bb7063d
Merge pull request #3079 from ebean-orm/feature/bump-migration
...
Bump ebean-migration to 13.8.0 and ebean-ddl-runner to 2.3
2023-05-29 16:28:44 +12:00
Rob Bygrave
04b4fea559
Bump ebean-migration to 13.8.0 and ebean-ddl-runner to 2.3
2023-05-29 16:27:54 +12:00
Rob Bygrave and GitHub
eb824949fe
Merge pull request #3078 from ebean-orm/feature/refactor-renameDtoMethodUsingAccessors
...
Refactor internal dto methods to use accessors
2023-05-26 15:24:40 +12:00
robin.bygrave
34db4d0c1f
Refactor internal dto methods to use accessors
2023-05-26 15:09:11 +12:00
Rob Bygrave and GitHub
54a3113dbc
Merge pull request #3077 from ebean-orm/feature/3062-dtoQuery
...
Use Statement for truncate table and postgres version query
2023-05-26 15:03:52 +12:00
robin.bygrave
7635630808
Use Statement for truncate table and postgres version query
2023-05-26 15:03:13 +12:00
Rob Bygrave and GitHub
e4018864ac
Merge pull request #3075 from ebean-orm/feature/3062-dtoQuery
...
#3062 - DtoQuery may match the wrong constructor
2023-05-25 21:58:52 +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
Rob Bygrave and GitHub
6061f80dcc
Merge pull request #3074 from ebean-orm/feature/toString_roundBrackets
...
Change toString to use (trimmed) with round brackets
2023-05-25 21:15:31 +12:00
robin.bygrave
c60525a685
Change toString to use (trimmed) with round brackets
...
Change from use <> angle brackets as with json logger these are escaped which is a little ugly
2023-05-25 21:14:51 +12:00
Rob Bygrave and GitHub
eef628531a
Merge pull request #3073 from ebean-orm/feature/bump-yugabyte
...
Bump yugabyte version to 2.18.0.0
2023-05-25 21:04:07 +12:00
robin.bygrave
33d9257a61
Bump yugabyte version to 2.18.0.0
2023-05-25 20:56:10 +12:00
robin.bygrave
7b032351b1
Bump yugabyte version to 2.18.0.0
2023-05-25 20:48:50 +12:00
robin.bygrave
265f865a7d
Postgres DDL - Use IF NOT EXISTS with ADD COLUMN
...
Update generated hashes
2023-05-25 20:30:47 +12:00
Rob Bygrave and GitHub
73d30310fd
Merge pull request #3072 from ebean-orm/feature/postgres-dll-addColumn-ifNotExists
...
Postgres DDL - Use IF NOT EXISTS with ADD COLUMN
2023-05-25 20:28:41 +12:00
Rob Bygrave and GitHub
e26fbbb11f
Merge branch 'master' into feature/postgres-dll-addColumn-ifNotExists
2023-05-25 20:25:54 +12:00
Rob Bygrave and GitHub
a548c16789
Merge pull request #3071 from ebean-orm/feature/postres-ddl-varchar-changeSize
...
Postgres DDL - Don't use cast when just changing varchar column size
2023-05-25 20:23:04 +12:00
robin.bygrave
ecf650c9bc
Postgres DDL - Use IF NOT EXISTS with ADD COLUMN
2023-05-25 20:22:18 +12:00
robin.bygrave
b27b4e7038
Postgres DDL - Don't use cast when just changing varchar column size
2023-05-25 20:00:36 +12:00
Rob Bygrave and GitHub
58d190ef12
Merge pull request #3070 from ebean-orm/dependabot/maven/ebean-test/org.xerial-sqlite-jdbc-3.41.2.2
...
Bump sqlite-jdbc from 3.36.0.3 to 3.41.2.2 in /ebean-test
2023-05-24 09:28:05 +12:00
dependabot[bot] and GitHub
bffc9108f9
Bump sqlite-jdbc from 3.36.0.3 to 3.41.2.2 in /ebean-test
...
Bumps [sqlite-jdbc](https://github.com/xerial/sqlite-jdbc ) from 3.36.0.3 to 3.41.2.2.
- [Release notes](https://github.com/xerial/sqlite-jdbc/releases )
- [Changelog](https://github.com/xerial/sqlite-jdbc/blob/master/CHANGELOG )
- [Commits](https://github.com/xerial/sqlite-jdbc/compare/3.36.0.3...3.41.2.2 )
---
updated-dependencies:
- dependency-name: org.xerial:sqlite-jdbc
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-23 20:15:29 +00:00
Rob Bygrave and GitHub
114a715432
Merge pull request #3068 from FOCONIS/throw-exceptions
...
DB.refrence throws EntityNotFoundException instead returning null
2023-05-23 19:29:51 +12:00
Rob Bygrave and GitHub
67d98954b2
Merge pull request #3069 from ebean-orm/feature/bump-avaje-config
...
Bump avaje-config to 3.4
2023-05-23 19:28:47 +12:00
Rob Bygrave
53e7aafb06
Bump avaje-config to 3.4
2023-05-23 19:26:29 +12:00
Roland Praml
e207b4720b
DB.refrence throws EntityNotFoundException instead returning null
2023-05-23 08:37:52 +02:00
Rob Bygrave and GitHub
af6da23411
Merge pull request #3067 from ebean-orm/feature/2064-jakarta-transaction
...
#3064 - JtaTransaction does not use jarkarta prefix for javax.transaction classes
2023-05-23 17:11:38 +12:00
robin.bygrave
21f274fd34
#3064 - JtaTransaction does not use jarkarta prefix for javax.transaction classes
2023-05-23 17:09:53 +12:00
Rob Bygrave and GitHub
1b8df12a01
Merge pull request #3066 from ebean-orm/feature/3060-part2
...
From #3060 - Add missing @Nullable to ExpressionList.findSingleAttribute()
2023-05-23 17:00:14 +12:00