rob bygrave
55a9ba7170
#1475 - @OneToOne child with @SoftDelete that is deleted is still loaded by parent
2018-08-27 21:35:00 +12:00
rob bygrave
2df2224286
No effective change - add a new test for OneToOne with fetchType LAZY
2018-08-27 20:00:44 +12:00
rob bygrave
d11bb2c4e5
No effective change - add a new test for OneToMany orphanRemoval=true
2018-08-21 21:08:17 +12:00
rob bygrave
663b1bb4aa
#1474 - IllegalStateException: Table [some_table] does not exists in model? ... when applying drop table migration and table is no longer in the model
2018-08-21 20:45:31 +12:00
Snōwball and Rob Bygrave
f3d26e32ec
Possible fix error with multiple uses of enum ( #1473 )
...
When an enum is exists in the type cache and isn't String, @DbArray
fails. This includes a test that should fail everywhere (order of
reading fields isn't guaranteed afaik and the column needs to be read
before the @DbArray for the test to fail).
2018-08-21 20:26:08 +12:00
rob bygrave
29c5a17202
#1472 - Cascade insert with managed id ... results in update rather than insert statement
2018-08-15 23:12:06 +12:00
rob bygrave
340b100a1a
No effective change - Add test for OneToOne orphanRemoval=true and String Ids (non generated ids)
2018-08-14 22:09:01 +12:00
rob bygrave
80975acfbf
#1471 - Change stateless update on bean with no @Version property that updates 0 rows to throw EntityNotFoundException
2018-08-14 14:23:28 +12:00
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
6d0556a120
#1460 - ENH: Add FetchGroup ... as a mechanism to specify select() + fetch() separately from Query
...
Change to add generics for FetchGroup
2018-08-02 23:18:44 +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
471605619a
#1460 - ENH: Add FetchGroup ... as a mechanism to specify select() + fetch() separately from Query
2018-07-30 23:51:52 +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
Roland Praml and Rob Bygrave
5c99986476
Migration with procedures ( #1451 )
...
DB Migration with helper stored procedures (for MySql and SQL Server)
2018-07-18 22:21:47 +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
Michael Benz and Rob Bygrave
cf2d9df256
Migration enum drop check constraints ( #1435 )
...
* Fix: apply drop checkConstraints properly which were not applied for Enum to String
* Use IF EXISTS to drop constraints
* added TODO and comment about MariaDB supporting CHECK constraints from version 10.2.1 forward compared to MySQL 5.7/8.0 parsing but ignoring CHECK constraints
* updated reference scripts for dropping constraints on enums
2018-06-27 10:38:56 +12:00
rob bygrave
ff3c5b3d82
#1441 - Update ebean-dbmigration.xsd adding missing alterForeignKey element
2018-06-27 00:23:36 +12:00
rob bygrave
1a03e84f0e
#1439 - IllegalArgumentException: No rule for io.ebeaninternal.dbmigration.migration.Sql@315df4bb
2018-06-26 22:40:08 +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
b58fc2df04
#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(?)
...
Add test for SqlUpdate
2018-06-19 16:30:21 +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
43e95d81f6
#1427 - RemoteTransactionEvent process dependent tables
2018-06-19 00:50:14 +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
085843339f
#1432 - Refactor internals for RemoteTransactionEvent / BeanPersistIds ... to not send inserted ids
2018-06-17 23:34:27 +12:00
rob bygrave
e1d4159453
#1431 - Refactor internals for RemoteTransactionEvent binary serialisation
2018-06-17 22:25:45 +12:00