rob bygrave
dd880ac09b
#2044 - Using @AttributeOverrides when override nullable
2020-08-31 14:38:23 +12:00
rob bygrave
a626690918
#2044 - Using @AttributeOverrides also override length, scale and columnDefinition
2020-08-25 09:48:01 +12:00
rob bygrave
0d511d51a6
#2044 - Using @AttributeOverrides breaking generated SQL (when override nullable and no column name)
2020-08-25 09:22:15 +12:00
Rob Bygrave and GitHub
002014f930
For #2038 - updated from 12.3.6 to 12.3.7 - NPE BeanDescriptor.findPropertyFromPath(BeanDescriptor.java:1965) ( #2047 )
...
* #2038 - lazy loading ToMany with path
* #2038 - Failing test for NPE BeanDescriptor.findPropertyFromPath(BeanDescriptor.java:1965)
* #2038 Refactor internals DbReadContext use BeanPropertyAssocMany
2020-08-24 18:40:36 +12:00
rob bygrave
3796f2b267
No effective change - organise imports on tests
2020-08-05 16:39:10 +12:00
peterko2017 and GitHub
4ef5abceca
Add STI Discrimination on Reference Associations ( #2041 )
...
* Update SqlTreeNodeBean#appendFromBaseTable to add
discriminator values to the join
* Update tests to reflect new generated SQL
2020-08-05 16:33:34 +12:00
rob bygrave
f704da641d
No effective change - Modify test only adding extra asserts for #2036
2020-07-24 11:54:15 +12:00
rob bygrave
dbc97aa28c
Remove the duplicate TestSoftDeleteBasic.testFindSoftDeletedList()
...
Hmmm, my bad. I merged the branch manually and that didn't remove the PR so I've merged this twice now and hence ended up with a duplicate method. All good, just removing this duplicate method.
2020-07-14 09:47:07 +12:00
Snōwball and GitHub
a231c136a9
Add failing test case for softdeletes ( #2034 )
...
Example:
One X can have many Ys. Ys can be soft deleted.
Y1 -> X1 -> Y1
Y1 is soft deleted
When Y1 is loaded, lazy-loading X1 and then lazy-loading the list of Ys associated with X1,
the list should contain Y1. This test asserts that is true.
2020-07-14 09:43:54 +12:00
rob bygrave
dac0a97a3f
#2035 - lazy-loading soft-deleted list from lazy-loaded bean doesn't remember includeSoftDeletes
2020-07-14 09:32:52 +12:00
rob bygrave
ff0274f72c
Merge branch 'soft_deletes_not_included' of https://github.com/tobias-/ebean into tobias--soft_deletes_not_included
2020-07-13 18:02:04 +12:00
rob bygrave
e1522a4a68
No effective change - tidy test TestSoftDeleteBasic
2020-07-10 10:48:28 +12:00
rob bygrave
7bc6170587
#2032 - Objects that occur in query is not filtered by @SoftDelete (when query has predicates on a ToMany path the associated soft delete predicates are not included)
2020-07-10 10:00:52 +12:00
Tobias
18ae0a7833
Add failing test case for softdeletes
...
Example:
One X can have many Ys. Ys can be soft deleted.
Y1 -> X1 -> Y1
Y1 is soft deleted
When Y1 is loaded, lazy-loading X1 and then lazy-loading the list of Ys associated with X1,
the list should contain Y1. This test asserts that is true.
2020-07-09 20:56:33 +02:00
Tobias
e99db44ddf
Add test for soft deleted children
...
When a child is referenced in the query, Ebean should make sure
that the child (or any of the objects connecting it in the query)
is deleted.
Ie. if a query requires a child to have a certain value, it should
filter out those children that are soft deleted. It should also perform
the deleted check on all objects leading up to that child.
E.g. assuming that all objects are soft deletable, the following where():
DB.find(Alpha.class).where()
.eq("alpha.beta.gamma.name", "bar")
should generate a query with
"t0.deleted = false AND t1.deleted = false AND t2.deleted = false AND t2.name = 'bar'"
2020-07-07 12:33:43 +02:00
rob bygrave
99732b30b1
No effective change - tidy test TestHstore
2020-07-01 15:38:58 +12:00
rob bygrave
0b807addc7
No effective change - test tidy
2020-06-29 17:09:02 +12:00
rob bygrave
bb03ef5693
No effective change - test tidy
2020-06-29 15:51:34 +12:00
rob bygrave
9da28262b4
#2004 - MariaDB History useLegacyDatetimeCode=false required to properly handle server timezone
2020-06-29 14:51:24 +12:00
rob bygrave
fc8dd18fd1
#2004 - MariaDB History DDL using add/drop system versioning
2020-06-29 14:03:21 +12:00
Rob Bygrave and GitHub
32ce1f1d59
#2004 - MariaDb specific platform with @History support (initial) ( #2023 )
...
#2004 - MariaDb specific platform with @History support (initial)
2020-06-19 23:20:07 +12:00
rob bygrave
a8ff918bb3
#2024 - Change default "fetchBuffer" for findEach/iterate/stream queries to 100
2020-06-19 22:36:24 +12:00
rob bygrave
c863014fec
Javadoc improvements for #2022 - use of index params like ?1, ?2, ?3 etc
2020-06-18 16:04:13 +12:00
rob bygrave
85ed8cd784
Test update only - TestSqlUpdateBindMultipleLists
2020-06-18 11:07:45 +12:00
rob bygrave
9b70900267
#2021 - Use smarter persistence context for findEach/iterate/stream queries - improve performance of un-tuned findEach/iterate/stream queries that invoke lazy loading
2020-06-17 21:50:11 +12:00
rob bygrave
9d9d13060c
#2020 - Fix potential connection leak in query-iterator WITH lazyLoadBufferSize (Refer #1164 )
2020-06-17 17:10:16 +12:00
rob bygrave
e071eecd59
Tidy test only - TestQueryFindEachWhile
2020-06-17 15:37:58 +12:00
rob bygrave
bc8e254a65
Tidy tests - delete duplicate test TestQueryFindVisit.java
2020-06-17 13:31:18 +12:00
rob bygrave
e0e369904c
Tidy test only - TestQueryFindIterate
2020-06-17 13:30:34 +12:00
rob bygrave
bd85ba17a1
No effective change - tidy TestQueryFindEach
2020-06-16 17:00:23 +12:00
rob bygrave
8801b8d8ca
No effective change - tidy TestQueryFindEach
2020-06-16 16:55:49 +12:00
rob bygrave
5e94c26094
No effective change - update TestQueryInIdTypeConversion
2020-05-27 15:53:01 +12:00
rob bygrave
5aaed4e12b
#2016 - L2 Cache - missing puts with explicit bean cache + findByIds/keys + after transaction writes
2020-05-26 23:42:44 +12:00
rob bygrave
c29a57b5ec
No effective change - update TestBeanCache Ebean -> DB
2020-05-26 23:19:23 +12:00
rob bygrave
d6d7537a9c
#2012 - Change ExpressionList.orderBy(String) to return ExpressionList<T>
2020-05-15 14:05:15 +12:00
rob bygrave
21a5efa9b9
Tidy tests - tidy up TestCsvReader and TestCsvReaderWithCallback
2020-05-12 21:28:31 +12:00
rob bygrave
293700acc0
#2007 - Encrypted fields unable to be mapped when using DtoQuery
2020-05-12 20:25:56 +12:00
rob bygrave
f2178bf0a6
#2003 - Bump ebean-datasource to 4.9.2 with optional driver
2020-05-04 12:41:14 +12:00
rob bygrave
5cae425b09
#2002 - Support maxRows with delete query
2020-05-04 12:28:52 +12:00
Rob Bygrave and GitHub
3310d2186d
Remove autoCommitMode and explicitTransactionBeginMode ( #1993 )
...
These are legacy options that we don't want anyone using going forward.
2020-04-30 23:36:24 +12:00
rob bygrave
6f1472abe0
#2000 - Tests only - bump sql server to 2019-GA-ubuntu-16.04
2020-04-28 22:13:57 +12:00
rob bygrave
c349832d35
#1997 - Modify @Transactional(readOnly=true) to use the read only DataSource
2020-04-25 17:33:33 +12:00
Jonas Pöhler and GitHub
c9588586c9
Removing elements with @OrderColumn with a tree depth > 1 doesn't work ( #1988 )
...
* ADD: failing testcase for orderColumn when tree depth > 1
* FIX: no update with @OrderColumn on treeDepth > 1 and avoid needless updates
* ADD: failing testcase for removing models in oneToMany relation with @OrderColumn
Signed-off-by: Jonas Pöhler (JPo) <jonas.poehler@foconis.de >
* ADD: failing test for faulty element reordering in a entityBean tree with version
Signed-off-by: Jonas Pöhler (JPo) <jonas.poehler@foconis.de >
* FIX: incorrect behaviour when reordering or removing elements from collection with @OrderColumn.
Signed-off-by: Jonas Pöhler (JPo) <jonas.poehler@foconis.de >
2020-04-14 23:07:00 +12:00
rob bygrave
6d43883f77
#1990 - NPE with @Cache and setting naturalKey to null
2020-04-14 20:57:42 +12:00
rob bygrave
41e600be45
Merge branch 'bugfix/order_column_l1_cache' of https://github.com/FOCONIS/ebean into FOCONIS-bugfix/order_column_l1_cache
2020-04-12 16:37:00 +12:00
Rob Bygrave and GitHub
62a81c531a
Merge pull request #1986 from FOCONIS/bugfix/order_column_reference_abstract
...
@OrderColumn is ignored on relations referencing a abstract inheritance-model
2020-04-12 16:32:15 +12:00
Jonas Pöhler (JPo)
e05b6b78ad
ADD: failing testcase for not cleared beancache in persistence context on reorder with @OrderColumn
...
Signed-off-by: Jonas Pöhler (JPo) <jonas.poehler@foconis.de >
2020-04-08 16:04:49 +02:00
Jonas Pöhler (JPo)
f194fdb132
ADD: failing testcase for @OrderColumn working when referencing the parent of a inheritance structure
2020-04-06 16:08:21 +02:00
Jonas Pöhler (JPo)
2d274c46fa
FIX: no update with @OrderColumn on treeDepth > 1 and avoid needless updates
2020-04-06 15:34:43 +02:00
Jonas Pöhler (JPo)
b61e9af750
ADD: failing testcase for orderColumn when tree depth > 1
2020-04-06 15:14:23 +02:00