yuanxuegui
9d336cb20b
ENH: Add mappingsLocation config to search xml mapping files.
...
ENH: Add mappingsLocation config to search xml mapping files.
ENH: Add mappingsLocation config to search xml mapping files.
ENH: Add mappingsLocation config to search xml mapping files.
ENH: Add mappingsLocation config to search xml mapping files.
ENH: Add mappingsLocation config to search xml mapping files.
remove unused import.
ENH: Add mappingsLocation config and search xml mapping files feature.
2018-03-17 17:27:51 +08:00
Rob Bygrave
602a35d0b6
#1348 - ENH: Add support for bitwiseAnd / bitwiseAny / bitwiseAll .. expressions for use with integer/long "Flags" properties
2018-03-14 16:23:16 +13:00
Rob Bygrave
afead2da41
#1221 - ENH: Add a merge(bean) and merge(bean, paths)
2018-03-13 23:55:47 +13:00
Rob Bygrave
af2b8976fa
#1346 - Since ebean version 11.12.1 executing docStore query with findPagedList fails with error (due to order by id)
2018-03-12 18:28:17 +13:00
Rob Bygrave
85bfe3d03e
#1345 - Refactor io.ebean.meta.MetaInfoManager API (query execution metrics). Breaking change for people collecting query execution metrics.
2018-03-10 02:51:51 +13:00
Rob Bygrave
eda6350d89
#1344 - ENH: Add initial Cockroach DB support ... need to review JSON
...
Adds in the DB ARRAY support (exactly the same as Postgres)
2018-03-09 17:40:34 +13:00
Rob Bygrave
2042bdf29a
#1342 - Refactor and rename DbTypeConfig to Platform config to support multi-platform db migration
2018-03-08 23:23:50 +13:00
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
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
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
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
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
62cdfb3209
#1330 - Update ANTLR dependency to 4.7.1
2018-03-05 19:22:38 +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
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
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
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
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
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
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
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
21182da793
Fix test LoaderTest
2018-02-26 09:18:45 +13:00
Roland Praml and Rob Bygrave
e3425a8850
FIX: possible resource leaking in testcases (all created transactions are closed by followed try statement) ( #1273 )
2018-02-26 08:40:53 +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
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
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
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
ec7b376612
Test only change - fix test assert for sql server
2018-02-22 22:12:30 +13:00
Rob Bygrave
eaa48468cd
#1174 - ENH: Support mapping @TenantId to an entity bean via @ManyToOne
2018-02-21 09:44:37 +13:00