Rob Bygrave
c697c010d0
Fix for #3338 Potential shutdown hang with SpringContextShutdownHook and ebean ShutdownHook
2024-02-26 08:30:27 +13:00
Rob Bygrave
24b99d065a
Merge branch 'master' into ebean-15x
2024-02-19 22:43:41 +13:00
Rob Bygrave
6b2cdc14aa
Version 14.0.0
2024-02-15 22:48:38 +13:00
Rob Bygrave and GitHub
0e063549cd
Merge pull request #3327 from ebean-orm/feature/remove-deprecated-commitTransaction
...
Remove deprecated database.commitTransaction(), migrate to transaction.commit()
2024-02-15 22:07:32 +13:00
Rob Bygrave and GitHub
4f0d2cabfb
Merge pull request #3325 from ebean-orm/feature/default-batchSize-100
...
Change default persistBatchSize from 20 to 100 (as a better default value)
2024-02-15 22:07:14 +13:00
Rob Bygrave
80b2d9f983
Remove deprecated database.commitTransaction(), migrate to transaction.commit()
...
Remove the deprecated methods:
- DB.commitTransaction()
- DB.rollbackTransaction()
- DB.endTransaction()
- database.commitTransaction()
- database.rollbackTransaction()
- database.endTransaction()
Migrate to using try-with-resources and transaction.commit(), transaction.rollback()
2024-02-15 21:56:57 +13:00
Rob Bygrave
261b13ef4b
Version 13.26.1
2024-02-10 12:40:30 +13:00
Rob Bygrave
e6e53e0d93
Change default persistBatchSize from 20 to 100 (as a better default value)
...
This is the batch size used with PreparedStatement executeBatch() with
batched inserts, updates and deletes. 20 is really on the low side and
bumping this default to 100 seems good and right.
2024-02-10 12:15:50 +13:00
Rob Bygrave
c32fc814f6
Add support for insert/insertAll with both options and explicit transaction
2024-02-10 12:00:32 +13:00
Rob Bygrave
8e035939dc
Add support for Postgres INSERT ON CONFLICT update | nothing
...
Adds InsertOptions with ability to control the options used
for insert with Postgres around ON CONFLICT.
2024-02-10 01:07:44 +13:00
Rob Bygrave
f34e7b6003
Version 13.26.0
2024-01-20 22:01:30 +13:00
Rob Bygrave
44770382fb
enh: Add findSingleAttributeOrEmpty() returning Optional
2024-01-19 10:41:54 +13:00
Rob Bygrave
a6a38b9a92
Bump avaje-config to version 3.10
2024-01-18 22:30:09 +13:00
Rob Bygrave
a0f612ed71
Add usingConnection() to DtoQuery and SqlQuery
...
For the case where we have a java.sql.Connection and wish
to execute a DtoQuery or SqlQuery using that connection.
2023-12-21 21:24:02 +13:00
Rob Bygrave
47e97a77a8
Version 13.25.2
2023-12-07 20:18:40 +13:00
Rob Bygrave
97709d3493
skipDataSourceCheck() when using readOnlyDatabase
...
As we don't want the warning logged in this case:
DataSource [{0}] has autoCommit defaulting to true!
2023-11-23 23:23:53 +13:00
Rob Bygrave
87ad874621
Read the readOnlyDatabase property via loadSettings()
2023-11-23 23:15:58 +13:00
Rob Bygrave
dfe95f6fc0
Version 13.25.1
2023-11-22 17:50:09 +13:00
Rob Bygrave
803f1d8642
Refactor tidy internals of DbPrimary, DatabaseFactory, ContainerConfig, ClusterManager
2023-11-20 22:18:53 +13:00
Rob Bygrave
24bb364d40
Add read only database configuration/builder option
...
When using DatabaseBuilder.readOnlyDatabase(true) then
ebean will:
- Set the DataSourceBuilder to use autoCommit=true and readOnly=true
- Use the same DataSource instance for both dataSource and readOnlyDataSource
This is to simplify the setup/configuration for creating a Database that
will only have read-only use.
Note that readOnly=true is a JDBC hint and for example H2 database effectively
ignores that hint where as Postgres will enforce the read-only true nature.
2023-11-13 23:12:05 +13:00
robin.bygrave
db7fbd5246
Merge branch 'master' into ebean-15x
2023-11-07 15:39:06 +13:00
Rob Bygrave
b50ce5fc3f
Version 13.25.0
2023-11-06 20:08:00 +13:00
Rob Bygrave
5b0a3607f6
Fix to return DataSourceBuilder.Settings for getDataSourceConfig() and getReadOnlyDataSourceConfig()
...
That is, existing code using DataSourceConfig has access to the getter
methods of DataSourceConfig. The DataSourceBuilder interface only has
the setter methods and DataSourceBuilder.Settings has both getters and
setter methods.
That is, the refactor to extract the DataSourceBuilder interface also
split off the getter methods to the DataSourceBuilder.Settings interface
(because most of the time when using the builder we only need the
setter methods and effectively hiding the getter methods behind the settings()
is useful to simplify the API for users).
2023-11-06 12:14:27 +13:00
Rob Bygrave
bcf7bd17be
Version 13.14.0-jakarta
2023-11-05 22:21:20 +13:00
Rob Bygrave
043dc5c51f
Add setters without the set prefix to DatabaseBuilder with deprecation
...
So add `name(String name)` as preferred to `setName(String name)` etc
2023-11-05 22:01:02 +13:00
Rob Bygrave
e2d666df35
Use fluid setters for DatabaseConfig and DatabaseBuilder
2023-11-04 13:05:22 +13:00
Rob Bygrave
314e0a14b8
Move the internal serviceObjectKey() methods back into DatabaseConfig
...
They were incorrectly extracted to the interface as default methods
2023-11-03 23:00:29 +13:00
Rob Bygrave
1f9cf1e4b7
Split DatabaseBuilder interface separating the setters n getters adding DatabaseBuilder.Settings
...
So DatabaseBuilder.Settings has all the getters for code looking to read
the configuration that has been set. So DatabaseBuilder now just has the
setter methods.
Use DatabaseBuilder.settings() to access the settings and read the config
that has been set.
2023-11-03 22:58:11 +13:00
Rob Bygrave
12029ed06e
Refactor extract interface DatabaseBuilder from DatabaseConfig
...
First step in supporting the builder pattern for creating Database
2023-11-03 21:17:55 +13:00
Rob Bygrave
ae962c2e08
Improve the javadoc for deprecated methods (to assist IDE quick-fix actions)
2023-11-03 20:04:25 +13:00
Rob Bygrave
41185eeb5c
Bump ebean-datasource to 8.8 with DataSourceBuilder
...
First step in migrating the ebean-datasource API to use builder pattern.
DataSourceConfig (concrete type) migrating to DataSourceBuilder (interface).
A followup step will deprecate the use of DataSourceConfig.
2023-11-03 18:31:11 +13:00
Rob Bygrave
70eb557929
Version 13.23.2-jakarta
2023-10-27 22:13:05 +13:00
Rob Bygrave
8f6a3c59d1
Bump io.avaje:junit and bytebuddy version to support JDK 22+
2023-10-25 21:58:19 +13:00
Rob Bygrave
0171c1afef
Version 13.23.1
2023-10-18 15:47:04 +13:00
Rob Bygrave
dd498409e0
Bump dependency for avaje-config to 3.9
2023-10-17 22:38:33 +13:00
Rob Bygrave
7316fb8f1d
[15x] Remove Inheritance support
2023-10-11 22:55:36 +13:00
Rob Bygrave
475c30c2a2
[15x] Remove "Future queries" findFutureList, findFutureIds, findFutureCount
...
Note that findFutureCount still exists as an internal implementation detail
of findPagedList but not exposed via Query API for public use.
2023-10-11 22:54:05 +13:00
Rob Bygrave
5a11dcb2e3
[15x] Remove ElasticSearch support
2023-10-11 22:54:05 +13:00
Rob Bygrave
66d29a7f0c
[15x] Remove Draftable support
2023-10-11 22:54:05 +13:00
Rob Bygrave
e3af5cdeb4
[15x] Remove Read Auditing feature
2023-10-11 22:54:05 +13:00
Rob Bygrave
c4bfa48b59
[15x] Remove Named DTO queries and External Mapping (loading named queries)
2023-10-11 22:54:05 +13:00
Rob Bygrave
8473f9fd39
[15x] Remove Named queries, ANTLR, Query language parser
2023-10-11 22:54:00 +13:00
Rob Bygrave
1e8c609dec
Remove the Deprecated(experimental) from StdOperators
2023-10-10 23:42:47 +13:00
Rob Bygrave
4506596379
Tidy remove old stylesheet.css from source
2023-10-10 23:41:42 +13:00
Rob Bygrave
0b2c016af2
Version 13.23.0
2023-10-10 22:46:30 +13:00
Rob Bygrave
1cc1d29c2f
Deprecate ServletContextListener (for shutdown in servlet container)
...
Deprecated for removal - no intention to replace. Create your own
ServletContextListener if needed for your application.
2023-10-06 22:38:26 +13:00
Rob Bygrave
bdc236159b
Bump avaje-config to 3.8
2023-10-06 22:03:45 +13:00
Rob Bygrave
429843c358
#3209 MetricsAsJson escape the SQL string content
2023-10-04 23:15:14 +13:00
Rob Bygrave
ff43672f4e
Move source to Jakarta (use ./jakarta-to-javax.sh)
...
Moving the master branch to use jakarta based code and
dependencies. Change to use ./jakarta-to-javax.sh to convert
back to javax when releasing that.
2023-09-11 23:31:01 +12:00
Rob Bygrave
0842a3f3e2
Version 13.22.0
2023-08-30 22:17:31 +12:00