rob bygrave
95dab97b1b
No effective change - adjust test adding @Draft property to @Draftable Document
2018-08-14 14:16:08 +12:00
Snōwball and Rob Bygrave
9bbe99657a
Let enum arrays be saved as integers or strings ( #1467 )
...
* Let enums be saved as integers or strings as needed
* Add tests for int and varchar @DbArray enums
2018-08-13 21:26:14 +12:00
rob bygrave
ec7e4e4935
#1461 - @OneToMany with @JoinTable without table name does not default join table name
2018-08-02 22:25:48 +12:00
rob bygrave
02fe956056
#1459 - findNative with join to a @OneToMany ... does not map properly
2018-07-27 12:31:56 +12:00
rob bygrave
db13034fec
No effective change - update code style in test
2018-07-27 12:31:27 +12:00
rob bygrave
f0f7feb125
No effective change - code format
2018-07-18 21:49:19 +12:00
Roland Praml and Rob Bygrave
c8e32253a5
FIX: support for ScalarTypeConverter and @Lob ( #1454 )
2018-07-18 21:41:46 +12:00
rob bygrave
01541bb208
#1457 - Issue with @ManyToOne with @EmbeddedId where only some columns are insertable or updatable
2018-07-18 21:29:08 +12:00
rob bygrave
2d44d06f36
#1456 - io.ebean.annotation.NotNull not honored by @ManyToOne property
2018-07-18 19:36:41 +12:00
Roland Praml and Rob Bygrave
5a6cdb9a86
FIX: null handling in ScalarType.toBeanType ( #1455 )
2018-07-18 16:33:36 +12:00
rob bygrave
d555122067
#1453 - @Formula property included in DDL when on @Inheritance bean and without @Transient
2018-07-15 15:36:29 +12:00
rob bygrave
b6d3dc3516
Fix test code only - Tune entity bean needs at least 1 non Id property
2018-07-15 15:01:17 +12:00
rob bygrave
309bf6a11a
Merge branch 'cache-bug-delete' of https://github.com/FOCONIS/ebean into FOCONIS-cache-bug-delete
2018-07-15 13:56:37 +12:00
rob bygrave
0c41993ce7
No effective change, whitespace
2018-07-15 13:55:15 +12:00
rob bygrave
117d22fd67
Merge branch 'bugfix/lazy_fetch_with_id_column_name' of https://github.com/tobias-/ebean into tobias--bugfix/lazy_fetch_with_id_column_name
2018-07-15 13:11:33 +12:00
Roland Praml
f13de2c8a6
ADD: Testcase for delete with cache
2018-07-13 19:57:56 +02:00
Mitsch164 and Rob Bygrave
5b8ef8154a
Fix Transaction Flushing when ID Property is Loaded ( #1450 )
...
* Fix for unintentianal flush when ID is loaded
* fix duplicateKey Exception
* higher id
2018-07-12 15:10:17 +12:00
Tobias
df892f4509
Failing testcase with lazy fetch
...
For some reason, all entities with an id starting with _ fails when
lazy-fetching due to sort not being properly renamed.
2018-07-11 15:52:56 +02:00
rob bygrave
72788c7428
No effective change - tidy test code
2018-07-05 22:41:28 +12:00
rob bygrave
8789709fb8
No effective change - tidy test code
2018-07-05 22:40:09 +12:00
rob bygrave
588aaf9361
#1447 - Delete query ... should honour cascading delete if defined
...
See also PR #1445 with the failing test case
2018-07-05 22:37:54 +12:00
Michael Benz and Rob Bygrave
68649d0e98
Failing unit test to demonstrate the bug that deleting an entity via … ( #1445 )
...
* Failing unit test to demonstrate the bug that deleting an entity via an Ebean query does not respect the cascade setting.
(here a mapped optional OneToOne entity is not deleted using an Ebean query even if the CascadeType.ALL was used)
* moved init and cleanup code to @Before and @After JUnit methods and added another test that shows Ebean.delete() works as expected
2018-07-05 19:52:40 +12:00
rob bygrave
c981944c8e
#1444 - JSON parsing with inheritance - java.lang.UnsupportedOperationException: cannot create entity bean for abstract entity ...
2018-07-04 21:26:17 +12:00
rob bygrave
1ba9f4e9de
No effective change - Add simple profile query main
2018-07-04 21:25:36 +12:00
rob bygrave
ce02e7ce70
No effective change - tidy tests
2018-07-04 21:25:10 +12:00
rob bygrave
49ab17cd34
#1438 - Mapping of @ElementCollection with an Enum that is otherwise not used produces error
2018-06-26 22:11:40 +12:00
rob bygrave
9cd189034c
#1437 - or(expr, expr) ... where expr has a ToMany should produce a LEFT JOIN (and instead we only get JOIN)
2018-06-26 21:33:44 +12:00
rob bygrave
ed566ca153
#1427 - QueryCache should be cleared, if one of a dependent bean is updated
...
Refactor on PostCommitProcessing with fixes for dependent table invalidation
2018-06-26 00:25:33 +12:00
rob bygrave
dd8607b072
#1436 - PersistenceException: Query threw SQLException:No ScalarType registered for class java.util.Arrays$ArrayList Query was:select id, name from o_customer where id = any(?)
2018-06-19 15:30:19 +12:00
rob bygrave
a5a8765bd0
Update tests only - non native boolean (MySql) and ignore non-named savepoint nested transaction tests with MySql.
2018-06-19 15:24:35 +12:00
rob bygrave
3a64cf6952
#1434 - Remove deprecated API from EbeanServer - finder methods that take explicit transaction. Migrate to use ebeanServer.extended()
2018-06-18 21:34:51 +12:00
rob bygrave
8d976f83a9
#1417 - Breaking API - Remove PersistBatch.INSERT ... migrate to PersistBatch.ALL
2018-06-18 21:15:10 +12:00
rob bygrave
96cc8d7605
#1427 - QueryCache should be cleared, if one of a dependent bean is updated
...
Initial work, does not include propagation across cluster.
2018-06-15 17:36:23 +12:00
rob bygrave
59537227b6
#1426 - ENH: Add bitwiseNot expression ... e.g. bitwiseNot("flags", BwFlags.HAS_COLOUR)
2018-06-14 23:28:30 +12:00
rob bygrave
81c6d4601d
#1425 - Stateless update with OneToMany with SoftDelete and deleteMissingChildren = true ... does a hard delete
2018-06-14 16:09:45 +12:00
rob bygrave
50593a7f9d
#1423 - Close resources - InputStream of entity bean properties of File type
2018-06-14 00:04:43 +12:00
rob bygrave
c088cfa339
#1421 - Nested programatic transaction using auto close / try with resources ... does not end/rollback the parent/outer transaction
2018-06-13 22:22:29 +12:00
rob bygrave
81897bd54d
#1418 - Add saveAll() and deleteAll() to io.ebean.BeanRepository
2018-06-12 21:40:39 +12:00
rob bygrave
2427630c07
#1400 - Postgres @History table sys_period empty with multiple updates
2018-06-11 22:10:43 +12:00
rob bygrave
32e9b48359
#1414 - Support dynamic aggregate formula without alias e.g. query.select("date, sum(totalKms), sum(hours)")
2018-06-11 14:13:13 +12:00
rob bygrave
ec2f1f7243
#1414 - Support dynamic aggregate formula without alias e.g. query.select("date, sum(totalKms), sum(hours)")
2018-06-11 13:20:39 +12:00
rob bygrave
f031bb72b6
#1408 - Incorrect SQL when @Aggregation formula matches the property - sum(t0.sum(totalKms))
2018-06-08 17:38:15 +12:00
rob bygrave
42f0b419e8
#1405 - ENH: add findSingleDecimal() and findSingleLong() alias methods for SqlQuery.findSingleAttribute() ...
2018-06-08 02:19:36 +12:00
rob bygrave
7cbae758fc
#1407 - ENH: Add SqlQuery RowMapper and RowConsumer ... for raw JDBC ResultSet mapping and consuming
2018-06-08 02:04:38 +12:00
rob bygrave
fb32cfa170
#1406 - ENH: Add SqlQuery.findSingleAttributeList() ... for returning lists of scalar values via SqlQuery
2018-06-07 22:39:19 +12:00
rob bygrave
ffa8268125
#1405 - ENH: Add SqlQuery.findSingleAttribute() ... for returning single scalar values via SqlQuery
2018-06-07 22:17:01 +12:00
rob bygrave
eba1003c19
#1404 - Query.findCount() with query.setDistinct(true) ... doesn't give count distinct SQL query
2018-06-07 00:32:39 +12:00
rob bygrave
3f8d705439
#1402 - Refactor SQL Logging internals (io.ebean.SQL) such that it is easier to capture for testing/asserts
2018-06-01 14:10:00 +12:00
rob bygrave
e9faef2692
#1401 - FOR UPDATE queries inside a transaction are not honored when beans are already cached (in the persistence context)
2018-06-01 11:33:41 +12:00
rob bygrave
11e3649b85
#1398 - Support EQ / "Equal to" predicate on client side encrypted entity property - @Encrypted(dbEncryption = false)
2018-05-31 16:02:49 +12:00