Roland Praml
fdafa776e1
Merge remote-tracking branch 'ebean/master' into fix-limit-constraint-names
...
# Conflicts:
# src/test/resources/dbmigration/migrationtest/db2/1.0__initial.sql
# src/test/resources/dbmigration/migrationtest/db2/1.1.sql
# src/test/resources/dbmigration/migrationtest/db2/1.3.sql
2018-03-02 01:03:36 +01:00
Roland Praml
392eb2744d
ADD: comment
2018-03-02 00:17:23 +01:00
Roland Praml and Rob Bygrave
b642b3c644
FIX: Splitcolumns must return an empty array if string was empty ( #1315 )
...
* Add test suite from rpraml
* FIX: Splitcolumns must return an empty array if string was empty
* Just the reference scripts
2018-03-02 12:16:29 +13:00
Roland Praml and Rob Bygrave
0e1c815826
FIX: DataReader was read twice in exception-path ( #1314 )
2018-03-02 12:15:01 +13:00
Roland Praml and Rob Bygrave
83b463040f
ENH: Add sanity check to InExpression ( #1313 )
2018-03-02 12:14:09 +13:00
Roland Praml and Rob Bygrave
aea7d937eb
ENH: added SqlRow factory method to RawSqlService ( #1312 )
...
* ENH: added SqlRow factory method to RawSqlService
* compile fixes
* ADD: sqlRow factory also to RawSqlBuilder
2018-03-02 12:13:16 +13:00
Roland Praml and Rob Bygrave
78628ffad0
NEW: DB-with-Master option ( #1311 )
2018-03-02 12:12:34 +13:00
Roland Praml and Rob Bygrave
56a742ad70
NEW: UUID version 1 generator ( #1309 )
...
* NEW: Uuid Type 1 generator
* Remove parameter (from other PR)
* FIX: Mac detection
* Have to use nodeId in generation
2018-03-02 12:09:21 +13:00
Roland Praml
a4415b03ff
FIX: limit the constraint names
2018-03-02 00:08:52 +01:00
Roland Praml and Rob Bygrave
e252f71792
ENH: Optimized binary form for UUID (Type 1) ( #1308 )
...
* ENH: Optimized binary form for UUID (Type 1)
* added missing parameter in test
2018-03-02 12:04:56 +13:00
Roland Praml and Rob Bygrave
18ca3403ac
NEW: flag to control, if javax.validation NotNull annotation should generate a NotNull column or not ( #1306 )
2018-03-02 12:02:02 +13:00
Roland Praml and Rob Bygrave
94a118d635
FIX: do not set username and password for DbMigrationConfig ( #1304 )
2018-03-02 11:59:01 +13:00
Roland Praml and Rob Bygrave
efe325034b
NEW: Ebean.checkUniqueness - you can check a bean, if save would work ( #1303 )
2018-03-02 11:57:44 +13:00
Roland Praml and Rob Bygrave
0c368ed7b3
FIX: extra-ddl can contribute to "drop-all" script, otherwise the drop all script is not appyable to h2:file ( #1301 )
2018-03-02 11:48:35 +13:00
Roland Praml and Rob Bygrave
c1b022c123
NEW: FetchCountDistinct - query can return distinct values with their counts ( #1300 )
...
* NEW: FetchCountDistinct - query can return distinct values with their counts
* Have to disable asserts, because of #1298
2018-03-02 11:46:41 +13:00
Roland Praml and Rob Bygrave
021d57f4b2
FIX: @Formula on @ManyToOne produces SQLException ... fix appends missing FROM clause for formula joins #1299
2018-03-02 11:43:08 +13:00
Rob Bygrave
525afbc00f
#1296 - where().exampleLike(bean) ... with 'empty bean' produces invalid SQL
2018-03-01 13:38:09 +13:00
Rob Bygrave
6f2e1c0248
#1295 - Multiple platform DbMigration generation with non-native boolean type (BIT, INTEGER etc) produces incorrect DDL for other DB Platform with native boolean
2018-03-01 12:55:22 +13:00
Rob Bygrave
0d0a3422fc
#1283 - ENH: Support simplified test configuration (with docker setup typically via application-test.yml)
...
Refactor tidy - no effective change on this commit.
2018-02-28 21:11:49 +13:00
Rob Bygrave
57b0190cd2
#1283 - ENH: Support simplified test configuration (with docker setup typically via application-test.yml)
2018-02-27 18:28:03 +13:00
Rob Bygrave
c8e199177c
#1294 - NPE when delete cascade from bean with SoftDelete to imported OneToOne without SoftDelete
2018-02-27 15:31:26 +13:00
Rob Bygrave
45a023f0e4
#1282 - Not supported for @DbArray mapping when using kotlin var instead of val
2018-02-27 14:25:44 +13:00
Rob Bygrave
06bce35f5a
#1293 - Refactor - move JdbcClose into io.ebean.util ... from io.ebeaninternal.util as it is used in public API (platform code, sequences etc)
2018-02-27 12:56:20 +13:00
Roland Praml and Rob Bygrave
3dfdd0e2e8
#1292 - Fix for non-native / number boolean types (MySql, SqlServer, Oracle, Sqlite, SqlAnywhere) removing "default 0" + Fix for DB2 add foreign key update clause
2018-02-27 11:58:10 +13:00
Rob Bygrave
a569c7fc96
#1275 - Additional refactor of DefaultOrmQuery.prepareForPaging() for - Add ServerConfig.setDefaultOrderById() ...
...
Remove use of SpiOrmQueryRequest<T> request
2018-02-27 11:35:10 +13:00
Rob Bygrave
e751f991cb
#1275 - Additional refactor for - Add ServerConfig.setDefaultOrderById() ...
...
Removes the cast on DefaultOrmQuery.prepare()
2018-02-27 11:31:30 +13:00
Roland Praml and Rob Bygrave
83cf768369
Append preconfigured database to dbMigration ( #1291 )
2018-02-27 11:09:44 +13:00
Roland Praml and Rob Bygrave
0e3f47ee82
No effective code change: Fixwarnings, overrides, generics etc. ( #1285 )
2018-02-27 10:15:19 +13:00
Roland Praml and Rob Bygrave
a712be2917
auomatically append "order by id" when paging and query.orderById = true ( #1275 )
...
Add ServerConfig.setDefaultOrderById() and query.orderById(boolean) ... to control automatically append "order by id" with paging query
2018-02-27 10:09:52 +13:00
Rob Bygrave
cec65cc888
#1279 - Change ObjectFactory method to match, tidy format (no real change here)
2018-02-26 14:32:38 +13:00
Roland Praml and Rob Bygrave
da7bb834e7
DbMigration supports altering UniqueConstraints and foreign keys ( #1279 )
...
* NEW: Ebean reads version from pop.properties and prints it at start up
* DDL generation and migration can append a header and platformMigration is prepared to append epilog & prolog to scripts
* FIX: Set identity only, if it is not the platform default type
* Updated reference scripts
* ADD basic support for foreign key migration
* DbMigration detects alter foreign keys
* tests
2018-02-26 14:24:52 +13:00
Rob Bygrave
1c19d4cf7e
#1278 - Multi-tenant delete by id ... doesn't return 0 when no rows deleted
...
Where -1 (jdbc batch) is returned as true as per current behaviour
2018-02-26 13:20:49 +13:00
Rob Bygrave
347225efb2
#1278 - Multi-tenant delete by id ... doesn't return 0 when no rows deleted
2018-02-26 13:16:20 +13:00
Roland Praml and Rob Bygrave
91cb5a23fd
Fix dbmigration ( #1277 )
...
ENH: Support adding a '-- Generated by' comment to DDL including version and timestamp
2018-02-26 12:37:54 +13:00
Rob Bygrave
0e219a9bc6
Revert #1263 - ENH: Make Transaction API Fluid such that we can set multiple thing like batchSize and label in a fluid fashion #1276
2018-02-26 11:45:49 +13:00
Roland Praml and Rob Bygrave
0de084caec
removed escapeLikeCharacter method, as it is covered by parent implementation ( #1274 )
2018-02-26 08:42:18 +13:00
Rob Bygrave
8e9843ab8a
#1246 - Support use of application.yml and application-test.yml ... (as alternative to ebean.properties, test-ebean.properties)
2018-02-26 08:35:47 +13:00
Rob Bygrave
75462e7410
#1272 - ENH: Add built in support for Joda Period and java time Period
2018-02-23 17:54:02 +13:00
Rob Bygrave
265bda8cf2
#1272 - ENH: Add built in support for Joda Period
2018-02-23 17:41:01 +13:00
Rob Bygrave
7d0ed261b5
#1271 - ENH: Add BeanFinder and BeanRepository ... such that there is a read to go base class for DI repository style
2018-02-23 16:55:07 +13:00
Rob Bygrave
ff111eaf33
#1063 - Add Event Listeners capable of being notified for delete by id
...
Adds BeanDeleteIdRequest and adds a method to BeanPersistController and BeanPersistAdapter
2018-02-23 14:34:08 +13:00
Rob Bygrave
8b18e907af
#1063 - Add Event Listeners capable of being notified for delete by query or update by query
...
Adds QueryType and adds method query.getQueryType() which then can be used in a BeanQueryAdapter
2018-02-23 14:04:36 +13:00
Rob Bygrave
4a243a76a7
#1270 - Multi-tenant - partition mode - Delete by id does not include tenantId value in predicate
2018-02-23 10:26:47 +13:00
Rob Bygrave
f8ea5619d0
#1268 - SQL Server fix for "for update" plus Sequences support plus refactor of sequences
2018-02-22 22:45:44 +13:00
Rob Bygrave
e3fac7c622
#1269 - Paging queries should not ALWAYS append an order by ID ... but only when the order by is empty
2018-02-22 22:43:14 +13:00
Rob Bygrave
8ee68ac5e1
#1269 - Paging queries should not ALWAYS append an order by ID ... but only when the order by is empty
2018-02-22 22:40:22 +13:00
Rob Bygrave
4d122ea05b
#1267 - DDL issue on @OneToMany @JoinTable ... extra unnecessary index created on fk column
2018-02-22 22:09:53 +13:00
Rob Bygrave
83384c6f0e
#323 - DDL Generation support for foreign key cascade options
...
Tidy up, no GLOBAL_DEFAULT.
2018-02-21 11:04:04 +13:00
Rob Bygrave
eaa48468cd
#1174 - ENH: Support mapping @TenantId to an entity bean via @ManyToOne
2018-02-21 09:44:37 +13:00
Rob Bygrave
3e8b06e38e
#994 - @OneToOne cacade does not honor orphanRemoval = true
2018-02-20 16:59:55 +13:00