rob bygrave
15be31fd5f
#1051 - Remove ServerConfig h2ProductionMode ... means for testing with h2 explicitly set ddlGenerate and ddlRun
2017-07-02 11:42:56 +12:00
rob bygrave
e913f88f52
Fix test - TestCommitAndContinue ... close extra transactions used in asserts
2017-06-25 21:43:37 +12:00
rob bygrave
520d35b1d6
#963 - NullPointerException on no version provided (when setVersion(null) is used)
2017-06-25 14:44:13 +12:00
rob bygrave
cebd3f92a4
#1045 - MySql - DbMigration generate wrong comment syntax - should be alter table comment = syntax
2017-06-24 11:23:21 +12:00
rob bygrave
f1f2a416d3
No effective change - reformat only
2017-06-23 23:19:22 +12:00
rob bygrave
3f04f7f363
Merge branch 'master' of https://github.com/SamhammerAG/ebean into SamhammerAG-master
2017-06-23 19:52:55 +12:00
rob bygrave
800f854a12
#1043 Additional test for RawSql with upper case SQL
2017-06-23 19:46:47 +12:00
rob bygrave
bef9e6d54f
Merge branch 'master' of github.com:ebean-orm/ebean
2017-06-23 19:43:45 +12:00
Tigran_Dadaiants and Rob Bygrave
0e4c0ae6c3
#1043 RawSql should automatically map upper-case column alias to lower-case bean property ( #1044 )
2017-06-23 19:43:15 +12:00
rob bygrave
a0ea9887df
No effective change - remove unused imports
2017-06-23 19:37:24 +12:00
Roland Praml and Rob Bygrave
0413c22e6e
no effective code change - fixed warnings about serialization, override, raw-types ( #1032 )
2017-06-23 19:33:03 +12:00
rob bygrave
dbf4e99187
#1035 tests for - FIX: deleting and adding same bean in beanCollection leads to deletion in DB
2017-06-19 23:32:58 +12:00
Roland Praml and Rob Bygrave
bc74d35651
FIX: correct behavior of "startsWith, "contains" etc ( #1031 )
...
* FIX: correct behavior of "startsWith" if string contains "like"-wildcards
* Removed likeClasues with disabled escaping in database platforms as bind values are properly escaped now.
2017-06-19 22:21:26 +12:00
rob bygrave
c454e1f8a7
No effective change - add test
2017-06-19 21:53:35 +12:00
AWoelfel
ce6d6269cd
Step to reproduce reset of dirty flag on L2 cached entities after lazy load
2017-06-08 15:07:32 +02:00
rob bygrave
d0c1ae76f4
#955 - Migration "add column" DDL with check constraint is missing constraint name
2017-05-21 01:23:55 +12:00
rob bygrave
fe9500e6d0
#1011 - Create valid migration scripts for non-Postgres databases and @DbArray columns.
...
Merge branch 'test/dbarray-create-migration' of https://github.com/FOCONIS/ebean into FOCONIS-test/dbarray-create-migration
commit 3a8f32b173
Author: Michael Benz <michael.benz@foconis.de >
Date: Wed Apr 19 18:16:51 2017 +0200
adding dbmigration ddlgeneration test for Ebean @DbArray extension.
2017-05-20 23:40:02 +12:00
rob bygrave
d04954e46f
#999 - @DiscriminatorColumn columnDefinition is ignored for DDL generation
2017-05-20 15:03:21 +12:00
rob bygrave
88c6ec358c
#981 Additional refactor to 981 - use composed key in multi tenant environment - Expose TenantAwareKey handling for plugins
2017-05-20 13:53:46 +12:00
Roland Praml and Rob Bygrave
d3ea01b76e
use composed key in multi tenant environment instead a cache per tenant ( #981 )
2017-05-20 12:35:34 +12:00
rob bygrave
0c1a9786a3
#996 Add findOne() and findOneOrEmpty() - SqlQuery
2017-05-19 23:48:41 +12:00
rob bygrave
db298a349e
#996 Add findOne() and findOneOrEmpty()
2017-05-19 23:38:40 +12:00
Roland Praml and Rob Bygrave
933595ceea
ADD: Testcases for "fetchDistinct" ( #1024 )
...
* ADD: Testcases for "fetchDistinct"
* Updated the tests for #1024
2017-05-14 17:39:07 +12:00
rob bygrave
711701932a
#1023 - Bug with findSingleAttributeList() when used against @ManyToOne / foreign key
2017-05-11 23:20:19 +12:00
rob bygrave
8cef603d1c
#1021 Fix for query plan clash with single inheritance and cached query
2017-05-11 21:57:24 +12:00
Rien Nentjes
2a64a02211
Discriminator query cache error
2017-05-04 14:16:38 +02:00
Rob Bygrave
67ef0cd5d9
Refactor - repackage / move test code only
2017-05-01 20:39:49 +12:00
Roland Praml and Rob Bygrave
f9c70d2a2b
Fix/select distinct cascaded fetch ( #1015 )
...
Fix/select distinct cascaded fetch with findSingleAttributeList() on associated property path
2017-04-30 23:07:35 +12:00
Rob Bygrave
e51f7f11f1
Fix tests for #1016
2017-04-30 22:56:07 +12:00
OndrejPacay and Rob Bygrave
63def00626
#1012 - Filtering on embedded values in a joined table does not produce a sql join ( #1013 )
2017-04-30 22:33:02 +12:00
Alexander Winkler and Rob Bygrave
485e62b5d6
Added multi tenant catalog support. ( #987 )
2017-04-01 00:41:08 +13:00
Roland Praml and Rob Bygrave
0557e6cd08
Wrong alter table / alter column DDL was generated ( #988 )
...
* FIX: alter column type uses correct DB-type now.
* FIX: Oracle test case
2017-04-01 00:38:23 +13:00
Rob Bygrave
7178085680
#993 - ENH: Add flush() to EbeanServer and Model to make it more accessible than the current transaction.flushBatch() - Add Ebean.flush()
2017-03-13 23:13:41 +13:00
Rob Bygrave
4d82b86f81
#993 - ENH: Add flush() to EbeanServer and Model to make it more accessible than the current transaction.flushBatch()
2017-03-13 23:07:17 +13:00
Rob Bygrave
1d99a5c5a4
#992 - API Change - Change Transaction.close() to throw PersistenceException rather than IOException
2017-03-13 22:10:08 +13:00
Rob Bygrave
c8d01828b3
#991 ENH: Add forUpdateNoWait() and forUpdateSkipLocked() options ... #528 ENH: Improve exception handling
2017-03-13 20:50:22 +13:00
Rob Bygrave
3051412d90
#989 - ENH: Support @DbArray with Set ... (addition to the existing List support)
2017-03-10 20:50:07 +13:00
Rob Bygrave
140c1dd965
#985 - IllegalArgumentException when using @DbArray of type List<String> with @ChangeLog
2017-03-05 11:40:17 +13:00
Rob Bygrave
d91729f65d
#983 - Add credentials configuration support for document store (like basic auth for ElasticSearch)
2017-03-01 22:15:28 +13:00
Roland Praml and Rob Bygrave
5f63d5c35f
Fix multi tenant bean change ( #982 )
...
* FIX: beanChange has tenant-id
* FIX: NPE in DefaultServer.currentTenantId()
2017-02-26 13:12:26 +13:00
Rob Bygrave
0e2900d796
#980 - fix several bugs in findSingleAttibute - Refactor moving logic into DefaultOrmQuery setDefaultSelectClause() from findSingleAttributeList() (to support alternate calling via EbeanServer)
2017-02-26 13:08:10 +13:00
Roland Praml and Rob Bygrave
a46e086dc4
fix several bugs in findSingleAttibute ( #980 )
...
* add test case for distinct on id property
* suggested fix for "select distinct id"
* add test case for distinct with fetch
* FIX: .setDistinct(true) can be used in conjunction with fetch() now
* add test case for distinct with beans that have a disriminator column
* FIX: discriminator column is only read if also Id is read.
* fine tuned the test case
* added test cases for findSingleAttributeList without distinct
* improved fix to support also findSingleAttribute without distinct
* ADD: Bonus test case - assertion not yet verified
2017-02-26 12:37:36 +13:00
Roland Praml and Rob Bygrave
40ca179509
FIX: do not hit database if inherited entity has no children ( #974 )
...
* FIX: do not hit database if inherited entity has no children
* ADD: Testcase for creating references of inherited beans
2017-02-26 12:25:55 +13:00
Roland Praml and Rob Bygrave
a315c7c11e
More small fixes ( #977 )
...
* no effecitve code change: add @FunctionalInterface to designated interfaces
* no effective code change: removed obsolete imports
* no effective code change: removed obsolete @SuppressWarnings
* no effective code change: add @SuppressWarnings to UUID_PLACEHOLDER
2017-02-24 08:42:27 +13:00
Roland Praml and Rob Bygrave
40f5596837
add missing @override ( #975 )
...
* no effective code change: add missing @override in "io.ebean.*" package
* no effective code change: add missing @override in "io.ebeaninternal.api.*" package
* no effective code change: add missing @override in "io.ebeaninternal.server.*" package
* no effective code change: add missing @override in "io.ebeaninternal.util.*" package
* no effective code change: add missing @override in "io.ebeanservice.*" package
* no effective code change: add missing @override in "src/test/java/"
2017-02-24 00:01:25 +13:00
Koen De Groote and Rob Bygrave
6120a465e1
Simple fixes ( #976 )
...
* Should be only the really simple stuff.
* Final cleanups.
2017-02-23 23:46:51 +13:00
Rob Bygrave
8bb884374b
#970 - FOR UPDATE queries are not honored when beans are already cached
2017-02-21 22:53:14 +13:00
Rob Bygrave
3d8db775f7
#966 - ENH: Add serverConfig.setDbOffline(true) ... for creating new EbeanServer without a DataSource (for DbMigration typically)
2017-02-21 22:04:28 +13:00
Rob Bygrave
82102340b8
#960 - Incorrect query when using '.betweenProperties' with '@SoftDelete'
2017-02-09 23:43:45 +13:00
Rob Bygrave
d9e884b8bd
#969 - ENH: Add Finder.query(String ormQuery) ... helper method
2017-02-09 23:27:13 +13:00