rob bygrave
f611068a03
#2050 - Refactor internals - remove dependency on java.beans
2020-09-03 14:45:27 +12:00
rob bygrave
dd880ac09b
#2044 - Using @AttributeOverrides when override nullable
2020-08-31 14:38:23 +12:00
rob bygrave
b2ce9db8a8
#2048 - IllegalStateException: No query cache enabled on __. Need explicit @Cache(enableQueryCache=true) ... when ebean.disableL2Cache=true l2
2020-08-26 11:33: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
7317847aa7
#2037 - Allow PostCommit transaction callback to recursively add another PostCommit callback
2020-07-24 13:16:18 +12:00
rob bygrave
444644f759
#2037 - Allow PostCommit transaction callback to recursively add another PostCommit callback
2020-07-24 13:16:00 +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
b4330679b8
#2029 Opps, fix tests
2020-06-30 10:59:03 +12:00
rob bygrave
59447ad261
#2029 - ENH: Add database.getPlatform(); ... to obtain the underlying database platform being used
2020-06-29 21:56:18 +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
70ba658442
#2026 - Postgres DDL - modify type generates wrong alter sql. Needs explicit cast / using clause.
2020-06-29 12:12:10 +12:00
rob bygrave
70b730657f
#2028 - Refactor internals of smart persistence context to reference "parent" rather than copy beans (adjustment of #2021 )
2020-06-29 08:48:24 +12:00
rob bygrave
bf3cb7e2e2
No effective change - tidy test BeanDescriptor_registerTest
2020-06-26 15:49:35 +12:00
rob bygrave
967ca0c9f3
No effective change - add some more tests for EntityBeanIntercept
2020-06-23 17:09:15 +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
ebd6c535ab
No effective change - tidy TestRawSqlParsing
2020-06-12 15:04:36 +12:00
rob bygrave
5c771a7219
Add tests for RawSql with ${where} and ${andWhere} placeholders
2020-06-12 15:03:05 +12:00
rob bygrave
cbdf5609b2
#2015 - Dto instance id fields are not populated when queried using DtoQuery (and no select clause is specified)
2020-05-27 22:05:39 +12:00
rob bygrave
f6f9511d2a
#2014 - IllegalArgumentException: No rule for io.ebeaninternal.dbmigration.migration.RenameColumn
2020-05-27 21:00:42 +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