Roland Praml and Rob Bygrave
ac6708e0d0
Fix warnings ( #1129 )
...
* FIX: warnings (add generics, overrides, fix imports) - should be no effecive code change
* replaced deprecated methods by default methods
* FIX: more compiler warnings
* FIX more warnings - no code changes
2017-09-14 00:29:01 +12:00
rob bygrave
1e6678cbb4
#1126 - Regression bug in 10.4.5 with new line character use with SqlQuery, SqlUpdate and CallableSql
2017-09-13 21:14:19 +12:00
Roland Praml and Rob Bygrave
b8e1dffca2
replaced findUnique by "default" method in interfaces. ( #1124 )
2017-09-12 23:20:04 +12:00
rob bygrave
f77f3c3d6e
#1119 - Deprecate TxRunnable and TxCallable - migrate to plan JDK Runnable and Callable. Add explicit executeCall() method
2017-09-10 20:47:26 +12:00
Roland Praml and Rob Bygrave
9a7646195c
Featur/dbmigration 3 ( #1118 )
...
* ADD: more test classes for Softdelete and History
* update reference models after adding test classes
* DbMigration:Improved History generation for sqlserver
* FIX: When DB supports Sql2011 platform, we must not alter the history-table (as this is handled by DB itself)
* DbMigration: When dropping a table, drop the sequence also.
* DbMigration: dropColumn is handled by platformDdl now, as SqlServerDdl needs to delete dependent objects (default constraints...) first
* FIX: DbMigration is not executed on history table
* DbMigration: can drop comment now.
* No effective code change: completed ObjectFactory / fixed imports
* FIX: drop table comment
* Committed the reference models
2017-09-10 15:26:01 +12:00
rob bygrave
84d3578e33
No effective change - add a test for saveAll() with existing batch mode on
...
Assert that it does not flush the batch. We want the batch to continue and flush normally.
2017-09-09 14:14:57 +12:00
rob bygrave
c062c8e001
#1054 Java 9 - adding "Automatic-Module-Name" to MANIFEST.MF initial step
...
Update dependency to ebean-migration 10.2.1, avaje-classpath-scanner and avaje-datasource to avoid package name clash
2017-09-09 01:53:47 +12:00
rob bygrave
8c0232fdb8
#1114 - Deprecate findUnique() - please migrate to findOne() - update tests
2017-09-08 22:48:46 +12:00
Roland Praml and Rob Bygrave
dd8fff0277
Feature/ddl migration ( #1111 )
...
* REFACTOR: use functions from ddl-help
* NEW: Default values are written to DDL
* fix testcase for sqlserver as default constraints will get names in future
* Reading DbMigration
* ADD: DbmIgrationGenerateTest
* Tables must be created first
* Sanity checks and some getters
* DdlMigration gets applied now
* ADD: Testcase and reference migration scripts
* no effective code changes: add comments
2017-09-08 21:47:33 +12:00
Rob Bygrave
39931a3a2c
No effective change - add test example of markUnset on version property (to avoid occ check)
2017-09-07 00:40:19 +12:00
Roland Praml and Rob Bygrave
8009bdf099
REFACTOR: Created a "splitNames" in StringHelper and use it in various places. Also wrote some tests for StringHelper. ( #1107 )
2017-09-01 20:40:39 +12:00
rob bygrave
96e3f4138f
#1064 - Query table alias not used in update() or delete() queries
2017-08-31 21:29:08 +12:00
rob bygrave
f83c7fdac8
#1100 - Refactor OrmQueryPlanKey to use string expression for where
2017-08-31 02:11:49 +12:00
Roland Praml and Rob Bygrave
c00febd95b
ENH: Abort all tests if connection to db could not be esablished ( #1099 )
2017-08-30 20:04:50 +12:00
Roland Praml and Rob Bygrave
4c8e1113bf
FIX: deadlock in TestCommitAndContiune for sqlserver & hsqldb ( #1098 )
2017-08-30 20:03:41 +12:00
rob bygrave
5c60ba4d7f
Update test for WriteJson to just use PathProperties
2017-08-03 23:01:22 +12:00
Roland Praml and Rob Bygrave
2001539755
Sqlserver support ( #1053 )
...
* made some tests sqlserver ready (No effective code change in src/main)
* FIX enhance packages and let all testcases inherit from BaseTestCase, so that they can be launched directly from eclipse
* ADD sqldriver in pom and datasource
* FIX: DDL-generation for sqlserver - not yet all sqlserver tests passing
mvn verify -Ddatasource.default=mssql => Tests run: 1980, Failures: 22, Errors: 44, Skipped: 16
* BaseDdlHandlerTest checks against correct sqlserver-ddl now
2017-07-03 20:27:37 +12:00
rob bygrave
e49c4bfe5a
#867 - ENH: Add ability to globally use quoted identifiers on all tables and columns
2017-07-02 21:07:58 +12:00
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
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
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
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
rob bygrave
8cef603d1c
#1021 Fix for query plan clash with single inheritance and cached query
2017-05-11 21:57:24 +12: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
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
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
c8d01828b3
#991 ENH: Add forUpdateNoWait() and forUpdateSkipLocked() options ... #528 ENH: Improve exception handling
2017-03-13 20:50:22 +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
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
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