Noemi Szemenyei
ba80ae20f4
NPE Fix with .setCountDistinct(CountDistinctOrder.NO_ORDERING)
2021-11-22 08:30:50 +01:00
Noemi Szemenyei
6ea8f5c12b
Merge branch 'master' of https://github.com/ebean-orm/ebean into ebean-new
...
# Conflicts:
# ebean-core/src/main/java/io/ebeaninternal/server/core/OrmQueryRequest.java
# ebean-core/src/main/java/io/ebeaninternal/server/deploy/AssocOneHelpRefInherit.java
# ebean-core/src/main/java/io/ebeaninternal/server/deploy/BeanDescriptor.java
# ebean-core/src/main/java/io/ebeaninternal/server/querydefn/OrmQueryPropertiesParser.java
2021-11-22 08:07:30 +01:00
Rob Bygrave and GitHub
34135360ed
Merge pull request #2442 from FOCONIS/findmap-with-beancache-without-mapkey
...
findMap() with beanCache should use idPoperty if mapKey = null
2021-11-22 15:15:07 +13:00
Rob Bygrave
b4403c58d1
Merge branch 'assume-infoInherit-infoType-without-children' of https://github.com/FOCONIS/ebean into FOCONIS-assume-infoInherit-infoType-without-children
2021-11-22 15:06:34 +13:00
Noemi Szemenyei
60d0a3da39
findMap() with beanCache should use idPoperty if mapKey = null
2021-11-19 11:53:37 +01:00
Noemi Szemenyei
3efb552bd9
findMap() with beanCache should use idPoperty if mapKey = null
2021-11-19 11:50:45 +01:00
Noemi Szemenyei
1c224444c0
Assume InfoInherit infoType when it has no children
2021-11-16 13:44:53 +01:00
Jonas Pöhler and Noemi Szemenyei
d3e07defa0
FIX: Json deserialize references
2021-11-16 11:57:30 +01:00
Jonas Pöhler
e7cffe99d6
FIX: Json deserialize references
2021-11-12 14:46:39 +01:00
Noemi Szemenyei
0dc2550bdb
Assume InfoInherit infoType when it has no children
2021-11-12 10:40:15 +01:00
Jonas Pöhler
0367ae2a8c
Merge remote-tracking branch 'ebean/master' into ebean-new
...
# Conflicts:
# ebean-api/pom.xml
# ebean-autotune/pom.xml
# ebean-bom/pom.xml
# ebean-core-type/pom.xml
# ebean-core/pom.xml
# ebean-ddl-generator/pom.xml
# ebean-externalmapping-api/pom.xml
# ebean-externalmapping-xml/pom.xml
# ebean-postgis/pom.xml
# ebean-querybean/pom.xml
# ebean-redis/pom.xml
# ebean-test/pom.xml
# ebean/pom.xml
# kotlin-querybean-generator/pom.xml
# pom.xml
# querybean-generator/pom.xml
2021-11-04 10:33:04 +01:00
Jonas Pöhler
e08043f3b2
Disable test
2021-11-04 09:50:43 +01: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
Jonas Pöhler
499cb68fb0
FIX: defaultMutationDetection for JSON was not properly distributed. Needs proper Unit-Test
2021-10-28 18:05:34 +02:00
Rob Bygrave
704a138ff0
Tidy build.yml and TestExtraScalarTypes
2021-10-28 22:34:55 +13:00
Rob Bygrave
d507452d63
Fix test TestExtraScalarTypes for github workflows build
2021-10-28 22:33:28 +13:00
Jonas Pöhler
50824f1d7f
NEW: CustomDeployParser
2021-10-22 15:04:46 +02:00
Jonas Pöhler
45aa04e086
ADD: EntityImplements and EntityOverride + Tests
2021-10-22 13:46:41 +02: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
fcda419abb
#2424 Preserve using PersistenceException when transaction register(Callback) called with no active transaction
2021-10-21 12:06:45 +13:00
Rob Bygrave
4d34c9e868
#2424 Change error for transaction register(Callback) when no active transaction from PersistenceException to NullPointerException
...
Ah ok, so in being more strict on null for currentTransaction() that shows up the code that registers transaction callbacks as checking for null and throwing PersistenceException. This is inconsistent with LOTS of other methods that use currentTransaction() and would result in NPE.
The concept here is that PersistenceException for this case isn't better than NPE and NPE is actually more consistence wrt using currentTransaction().
2021-10-21 12:02:42 +13:00
Rob Bygrave
a445557ec3
#2422 - Remove extraneous jsr 305 @Nonnull
2021-10-19 17:59:25 +13:00
Rob Bygrave
a61c73c62a
#2418 #2420 BeanState.loadErrors() returns empty map
...
Change Database.beanState() to throw IllegalArgumentException when bean isn't an entity bean
2021-10-19 11:52:36 +13: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
0273e1c2c8
Modify test TestUpdate to ensure basic test data is loaded first
2021-10-11 12:13:02 +13:00
Rob Bygrave
c5e940733c
#2408 Followup refactor BindParamsParser extract methods
2021-10-11 11:21:28 +13:00
Rob Bygrave and GitHub
ac73031bec
Merge pull request #2408 from FOCONIS/pr/bugfix/reuse_update_collection_parameters
...
Fix reuse of io.ebean.Update when using setParameter with Collection
2021-10-11 11:01:23 +13:00
Rob Bygrave
a65ff8a650
Tidy test only - TestOneToManyCorrectGrouping
2021-10-08 12:55:50 +13:00
Rob Bygrave
2549eace09
#2406 - Memory leak in Query.findEach
2021-10-08 11:20:54 +13:00
Jonas Pöhler
a592717c77
Merge remote-tracking branch 'ebean/master' into pr/bugfix/reuse_update_collection_parameters
2021-10-06 11:57:50 +02:00
Jonas Pöhler
db6f93e383
FIX: Reuse of io.ebean.Update with collection parameters did not work correctly
2021-10-06 11:57:09 +02:00
Rob Bygrave
40492f487c
#2404 - Initializing @OneToMany with mutableListOf() in Kotlin results in ClassCastException
2021-10-05 10:17:44 +13:00
Rob Bygrave
9af006b15b
Update tests only for Oracle
2021-09-23 18:49:28 +12:00
Rob Bygrave
e8524c5b1a
Fix tests only - fix tests for SqlServer
2021-09-23 17:07:35 +12:00
Rob Bygrave
3244314424
#2390 - Tidy generated SQL removing excess whitespace after id = ? predicate
2021-09-23 16:42:45 +12:00
Rob Bygrave
477e7eeeda
#2387 - Hit the L2 bean cache via property IN expression (when property is the id property)
2021-09-23 00:23:23 +12:00
Rob Bygrave and GitHub
57689db291
Merge pull request #2380 from cit-consulting/isToManyDirty_cce
...
WIP: Try to fix ClassCastException in isToManyDirty() check
2021-09-22 14:00:19 +12:00
Rob Bygrave
21bd83b417
Fix TestQueryJoinOnFormula with Postgres specific sql
2021-09-21 21:16:06 +12:00
Rob Bygrave
97e9b3c473
#2383 - Refactor rename Pairs methods for consistency (that are expected to be used only internally)
2021-09-21 15:01:01 +12:00
Vladimir Konkov
01e7ddcffd
Try to fix ClassCastException in isToManyDirty() check
2021-09-20 20:02:58 +03:00
Rob Bygrave and GitHub
ad0befe90a
Merge pull request #2308 from FOCONIS/bugfix/fix-gen-key-sequence-test
...
fixing test entity GenKeySequence
2021-09-20 11:59:15 +12:00
rbygrave
f51f2269fb
#2377 - Wrong order in batch save, fix transaction depth
...
The guts of this fix is in DefaultPersister.saveAssocOne() with the change to use the new transaction.depthDecrement() method. For our failing test cases this changes the depth from -1, 0 to be 0, 1.
We can see the impact of this change in the batch ordering via the logging of:
io.ebean.SUM - txn[1001] BatchControl flush ...
2021-09-17 17:58:20 +12:00
rbygrave
b38a21f8c4
Merge branch 'save-cascade-order' of https://github.com/FOCONIS/ebean into FOCONIS-save-cascade-order
2021-09-17 14:00:35 +12:00
Roland Praml
bf62efd220
Add failing testcases for wrong order in batch save and possible fix for one of them
2021-09-16 16:52:20 +02:00
Rob Bygrave
3865fc8ffd
#2376 - When Lazy load of soft deleted bean - javax.persistence.EntityNotFoundException: Bean not found during lazy load or refresh. id[*] type[class *]
2021-09-16 23:01:04 +12:00
Rob Bygrave
b262c2e19d
#2373 - Tidy up, migrate from deprecated methods
2021-09-16 11:58:45 +12:00
Rob Bygrave and GitHub
cf95372f32
Merge pull request #2373 from FOCONIS/pr/enh/post_process_find_controller
...
Allow post-processing in BeanFindController
2021-09-16 11:26:34 +12:00
Rob Bygrave and GitHub
41bbfb0c9c
Merge pull request #2372 from FOCONIS/pr/bugfix/optimistic_lock_undo_generated_properties
...
Undo generated properties on OptimisticLockException
2021-09-16 11:17:55 +12:00