Rob Bygrave
0cc87009d0
#1340 - (test only change) Split SQL Server Platform into SqlServer16 and SqlServer17 (where 2017 which uses UTF8 types nvarchar etc and prefers Sequences).
...
Update DbMigrationGenerateTest ... for SqlServer17 platform
2018-03-08 18:37:36 +13:00
Rob Bygrave
824f5e468e
#1340 - (test only change) Split SQL Server Platform into SqlServer16 and SqlServer17 (where 2017 which uses UTF8 types nvarchar etc and prefers Sequences).
...
Reset Offline platform in DbMigrationSqlServerTest
2018-03-08 18:18:13 +13:00
Rob Bygrave
d84cdab714
#1340 - Split SQL Server Platform into SqlServer16 and SqlServer17 (where 2017 which uses UTF8 types nvarchar etc and prefers Sequences).
...
Only need to run H2 based test TestAutoCommitDataSource with H2
2018-03-08 17:45:19 +13:00
Rob Bygrave
f840cfc2ae
#1340 - Split SQL Server Platform into SqlServer16 and SqlServer17 (where 2017 which uses UTF8 types nvarchar etc and prefers Sequences).
...
test changes
2018-03-08 17:40:11 +13:00
Rob Bygrave
c0efd49c73
#1341 - Cascade persist with JDBC batch and BeanPersistAdapter with preUpdate() that invokes lazy loading on persisted bean ... results in OptimisticLockException
2018-03-08 14:12:32 +13:00
Rob Bygrave
e182190f96
#1339 - Regression: Fix for not throwing OptimisticLockException when loaded bean has @Version property set
2018-03-07 20:19:48 +13:00
Rob Bygrave
baa7242939
#1338 - Regression since 11.12.1 - resolve expressions in Properties given to serverConfig.loadFromProperties()
2018-03-07 16:43:42 +13:00
Rob Bygrave
55a257a64c
#1334 - ENH: Convert ORM query into DTO query ... with dynamic formula support
2018-03-07 01:52:18 +13:00
Rob Bygrave
a18cac035b
#1333 - ENH: Support "dynamic formula" with findSingleAttributeList() ... e.g. .select("concat(lastName,', ',firstName)")
...
Support property alias via "AS" ... concat(lastName,', ',firstName) as lastName
2018-03-06 21:14:26 +13:00
Rob Bygrave
873c14faaf
#1333 - ENH: Support "dynamic formula" with findSingleAttributeList() ... e.g. .select("concat(lastName,', ',firstName)")
...
Support cast of formula like ... select("max(updtime)::Instant")
2018-03-06 20:58:30 +13:00
Rob Bygrave
e1af7c29eb
#1333 - ENH: Support "dynamic formula" with findSingleAttributeList() ... e.g. .select("concat(lastName,', ',firstName)")
...
Concat automatically maps to String ScalarType
2018-03-06 17:35:26 +13:00
Rob Bygrave
c1c85b67c2
#1333 - ENH: Support "dynamic formula" with findSingleAttributeList() ... e.g. .select("concat(lastName,', ',firstName)")
2018-03-06 17:29:45 +13:00
Rob Bygrave
05b8adbf6e
No effective change - change test from extends testcase to normal junit
2018-03-06 16:37:47 +13:00
Rob Bygrave
3ca4efc818
#1331 - ENH: Support Aggregation formula with findSingleAttribute() ... max, min, avg, count and count(distinct ..)
2018-03-06 12:58:43 +13:00
Rob Bygrave
ec2c3b13d4
No effective change - add test for deploy parser
2018-03-06 01:08:42 +13:00
Rob Bygrave
5a3e386b7c
No effective change - add test for selecting only some @Aggregation properties
2018-03-05 19:59:40 +13:00
Rob Bygrave
62cdfb3209
#1330 - Update ANTLR dependency to 4.7.1
2018-03-05 19:22:38 +13:00
Rob Bygrave
740532da4b
#1329 - Ebean 11.12.1 broken when using ScalarTypeConverter with enum
2018-03-05 19:19:27 +13:00
Rob Bygrave
aad5b33db2
#1297 - ENH: Add DtoQuery ... such that we can map native SQL queries automatically into "DTO beans"
2018-03-02 23:32:01 +13:00
Roland Praml and Rob Bygrave
514416a1e0
Testcase Fix for SqlServer ( #1326 )
...
Test change only - Testcase Fix for SqlServer
2018-03-02 16:38:59 +13:00
Rob Bygrave
ebaeafc11b
#1303 - NEW: Ebean.checkUniqueness ... add example to javadoc
2018-03-02 16:25:13 +13:00
Rob Bygrave
98e014f8c8
#1300 - NEW: FetchCountDistinct ... add example to javadoc + support chaining use via ExpressionList
2018-03-02 14:30:38 +13: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
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 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
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
Roland Praml and Rob Bygrave
11e180aa3f
FIX: introduced TransactionalTestCase, so that changes to DB are not persisted ( #1298 )
...
* FIX: introduced TransactionalTestCase, so that changes to DB are not persisted
* removed license header
2018-03-02 09:10:21 +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
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
68a470a086
Test change only - No effective change, remove noop ServerConfig.loadTestProperties()
2018-02-27 15:00:13 +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
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
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
bb418456e3
Misc fixes ( #1290 )
2018-02-27 11:06:35 +13:00
Roland Praml and Rob Bygrave
ac9f3408b2
FIX: reset cache statistics (fixes test cases in eclipse when run in different order) ( #1289 )
2018-02-27 11:03:27 +13:00
Roland Praml and Rob Bygrave
78f8d48e2e
FIX: more timing issues - mysql does not support resolution in millis ( #1288 )
2018-02-27 11:00:58 +13:00
Roland Praml and Rob Bygrave
3f8b9529e1
Fix clock sync ( #1287 )
...
Test only change - Fix clock sync timing issues with tests using -DdbClockDelta
2018-02-27 10:59:19 +13:00
Roland Praml and Rob Bygrave
10f3d85d9f
No effective code change - add serialize/serialversionuid ( #1286 )
2018-02-27 10:57:07 +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
58def02cd1
#1280 - Update test for - Remove "order by" clause of RawSql query when executing findCount()
...
The code fix associated with this is in CQueryBuilder line 276
2018-02-26 14:41:56 +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
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