rob bygrave
06f3c000f5
#1115 - Trim SQL for SqlUpdate, SqlQuery and CallableSql - also replace \n with space
2017-09-08 23:45:28 +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
Rob Bygrave
58eb49617b
#1113 - SqlUpdate with leading spaces leads to Invalid event detection (which table was update for L2 cache invalidation etc)
2017-09-07 00:36:52 +12:00
Rob Bygrave
9b621d2ec7
#1112 - Enhance JDBC batch behavior when cascade persist is turned off (manual master/detail batch persisting)
2017-09-06 23:57:54 +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
Roland Praml and Rob Bygrave
e908d16ba8
Pr/add tests ( #1103 )
...
* ADD: Testcase for Sqlserver-6.2.0 driver
* CHG: Removed Row-limit - so we need no special handling when sqlserver-platform generates a "select top 100" statement
* ADD: additional asserts to TestQueryCache
* CHG: Ignore test for sqlserver
2017-09-01 20:17:56 +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
rob bygrave
1d1fde61be
#1101 - findNative() on a bean with an associated @OneToOne (with the PK being derived from the parent) maps incorrectly
2017-08-30 21:58:33 +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
Roland Praml and Rob Bygrave
6f854da70b
Fix/corrected error codes ( #1097 )
...
* FIX: db2plaform error codes and dbtypes
* FIX: H2: Add error code for locking
* FIX: Mysql: Add DataIntegrity-error code
2017-08-30 20:02:34 +12:00
Roland Praml and Rob Bygrave
457c1356a4
Fix/shortened tablenames ( #1093 )
...
* FIX: Shortened tablename (will fail on oracle)
* FIX: renamed table, otherwise, in db2 he_link_doc & hi_link_ are both generating the same index ix_h_lnk_dc_h_dc
2017-08-30 17:50:40 +12:00
Roland Praml and Rob Bygrave
a5bcd49ecb
FIX: Clean up before running tests - otherwise tests will fail if a previous test did not clean up well. (This fixes test failures in Eclipse where tests are executed in different order than in maven) ( #1089 )
2017-08-30 17:44:30 +12:00
Roland Praml and Rob Bygrave
591067e39e
FIX: Typo in classname ( #1086 )
2017-08-30 17:37:45 +12:00
rob bygrave
a06238558e
No effective change - Jackson WRITE_ENUMS_USING_INDEX test
2017-08-24 22:34:57 +12:00
Yuan Xuegui and Rob Bygrave
b3a3b19d5d
Fix: query table entity or sql entity has no id ( #1082 )
...
When query table entity or sql entity,include NamedQuery which modified via code and RawSqlQuery which modified via code.
2017-08-24 22:18:46 +12:00
rob bygrave
dc96fb9ad5
No effective change - update test, better asserts
2017-08-15 21:47:21 +12:00
rob bygrave
b74fed7073
Bump to 10.4.1 agent (@Transient properties included in mapped superclass enhancement detection)
2017-08-04 22:59:53 +12:00
rob bygrave
5c60ba4d7f
Update test for WriteJson to just use PathProperties
2017-08-03 23:01:22 +12:00
rob bygrave
b9cc584086
#1080 - NOT IN expression using entity beans / reference beans uses "in"
2017-08-03 20:31:18 +12:00
rob bygrave
66138e5ea2
#1070 Fix for - Create test for bean cache not being cleared with delete or update queries
2017-07-21 23:31:23 +12:00
Rien Nentjes
75fb89ef76
Create test for bean cache not being cleared with delete or update queries
2017-07-14 11:04:43 +02:00
rob bygrave
166bcd7c45
#1061 - findCount query is not cached in L2 query cache
2017-07-06 21:51:52 +12:00
rob bygrave
95aed6af54
#1060 - findSingleAttributeList doesn't store result in L2 query cache
2017-07-06 21:35:20 +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
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