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
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
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
2929483b0d
Refactor ebean-core internal API - getters -> accessors
2023-06-01 22:05:53 +12:00
Rob Bygrave
530bfa982e
Fix memory leak with streaming queries with Id Embedded
...
- The Id Embedded beans do not need the embeddedOwner to be set. They do not need to propagate dirty state back to the owner.
2023-01-05 23:27:22 +13:00
Rob Bygrave
84a64f9640
Refactor tests, move BaseTestCase and annotations @ForPlatform @IgnorePlatform
2022-03-24 18:52:37 +13:00
Rob Bygrave
2cbb161ed5
Follow up to #2437 - Rename internal "dead/alive" to "replaced"
2021-11-04 10:40:04 +13:00
Roland Praml
fd1b5f58bc
FIX: Subsequent findEach / findList does not work reliable (Regression of #2411 )
2021-11-03 11:34:04 +01:00
Roland Praml
d55023dbc7
FIX: When a bean is modified in persistence context and searched again, it will loose the change
2021-10-21 16:50:53 +02:00
Rob Bygrave
e173f6e9a9
Tidy only DefaultPersistenceContext after merge of #2411
2021-10-12 15:10:36 +13:00
Roland Praml
3f5009aa91
Use WeakReferences when in iterate query mode
2021-10-11 16:25:21 +02:00
Rob Bygrave
2549eace09
#2406 - Memory leak in Query.findEach
2021-10-08 11:20:54 +13:00
Rob Bygrave
7a327cb644
#2361 - Tidy tests only, organise imports
2021-09-09 11:29:05 +12:00
rbygrave
eab56d323b
Refactor move tests from ebean-core to ebean-test
2021-09-08 22:49:23 +12:00