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
rob bygrave
6d1e3a08e1
#1470 - Change OnQueryOnly to default to OnQueryOnly.COMMIT
2018-08-13 21:59:33 +12:00
rob bygrave
94e6fe90e5
No effective change - white space format
2018-08-13 21:54:19 +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 and GitHub
afb7679302
#1468 - ENH: Add built-in DDL generation for Postgres table partitioning (by day, week, month and year) ( #1469 )
2018-08-10 14:52:42 +12:00
rob bygrave
db35f0f5ed
#1466 - With ebean.dbSchema property (aka default db schema) we should not connection.setSchema() when running migrations
2018-08-09 21:34:23 +12:00
Rob Bygrave and GitHub
ded7d44974
Add support for Postgres range partition DDL plus refactor xsd definitions that had got out of sync ( #1465 )
...
* Add partition meta mapping
* Fix to allow schema prefix on select dynamic formula
* Add partition meta mapping
* Migration XSD Update
* Fix to allow schema prefix on select dynamic formula
* Bump ebean-migration to 11.8.1
2018-08-08 23:29:29 +12:00
rob bygrave
75395a8481
#1464 - NPE in PropertiesWrapper.internalGet(PropertiesWrapper.java:74) running multi-platform DB migration generation with ServerConfig that has no properties
...
Note that newPlatformConfig() is only used for multi-platform DB migration generation.
2018-08-07 11:55:06 +12:00
rob bygrave
a161d0c01b
#1463 - NPE in MigrationModel.readMigrations() when running using File resources with no migration directory
2018-08-07 11:36:26 +12:00
rob bygrave
1dd7720605
#1462 - DB Migration generation with Postgis types gives us non-strict geometry column DDL
2018-08-07 11:19:09 +12:00
rob bygrave
d4be0718a8
#1460 - ENH: Add FetchGroup ... as a mechanism to specify select() + fetch() separately from Query
...
Change to add generics for FetchGroup
2018-08-06 21:30:36 +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
7d38933e9d
Refactor remove dead code - BindableRequest registerGeneratedVersion()
...
No effective change
2018-07-18 22:16:15 +12:00
rob bygrave
cb0023345f
Refactor scalar types for Varchar, LongVarchar and Clob - ScalarTypeStringBase
2018-07-18 21:59:11 +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
74c88ce511
#1452 Fix - Deleting a bean does not invalidate the bean cache (Regression from 11.18.1 - introduced by changes in #1427 )
2018-07-15 14:13:29 +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
02b6ab0f74
No effective change, move null check on orderBy to prior to parse
2018-07-15 13:55:51 +12:00
rob bygrave
0c41993ce7
No effective change, whitespace
2018-07-15 13:55:15 +12:00
rob bygrave
93e603ca25
#1449 Fix for failing lazy fetch when logical property name starts with underscore
2018-07-15 13:49:05 +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
1d9a2ed43a
No effective change - tidy DJsonContext
2018-07-02 21:33:59 +12:00
rob bygrave
8b7d882b8a
#1442 - Add support to set ebean.dbSchema ... (~ default DB schema) with create-all.sql and DB migrations (so it all just works)
2018-06-28 10:23:34 +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
48b05eb358
No effective change - modify logback-test.xml to put the test example logging files into target directory
2018-06-27 10:37:00 +12:00
rob bygrave
ff3c5b3d82
#1441 - Update ebean-dbmigration.xsd adding missing alterForeignKey element
2018-06-27 00:23:36 +12:00