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
2470486f20
#1114 - Deprecate findUnique() - please migrate to findOne()
2017-09-08 22:37:50 +12:00
rob bygrave
8fbf0374dd
No effective change - tidy around Db migration changes
2017-09-08 22:02:56 +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
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
f2e8b652fa
FIX: DDL process comment change correctly & drop references when index is dropped ( #1109 )
2017-09-01 20:45:06 +12:00
Roland Praml and Rob Bygrave
f342d9d561
API-CHANGE: DbMigration returns which version was generated ( #1108 )
2017-09-01 20:42:02 +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
7336ce81bd
FIX: Do not add AssocOne-generatedProperties if they should not. ( #1106 )
2017-09-01 20:38:13 +12:00
Roland Praml and Rob Bygrave
f805bec8f2
FIX: Using correct datatype for null value when json is serialized to varchar column ( #1105 )
2017-09-01 20:36:41 +12:00
Roland Praml and Rob Bygrave
46cdc84e6b
Refactor/findannotation ( #1104 )
...
* refactor: renamed findAnnotation method that searches recursive to findAnnotationRecursive
* CHG: searching namedQueries & indices also recursive in superclasses
* FIX: Using the AnnotationBase methods on several places and documented them
2017-09-01 20:25:10 +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
977dd52890
No effective change - code reformat only
2017-08-31 21:10:13 +12:00
Roland Praml and Rob Bygrave
a9b7bb2175
FIX: Passing MDC through background-executor ( #1102 )
2017-08-31 21:09:04 +12:00
rob bygrave
f83c7fdac8
#1100 - Refactor OrmQueryPlanKey to use string expression for where
2017-08-31 02:11:49 +12:00
rob bygrave
b54b8815d9
Merge branch 'master' of github.com:ebean-orm/ebean
2017-08-30 21:59:08 +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
Roy de Bokx and Rob Bygrave
5e6be40454
Only throwing warning for autocommit when server is not set to use autocommit-friendly TransactionManager. ( #1085 )
2017-08-30 20:57:49 +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
d14529b602
FIX: optimized unique constraint handling for platforms that does support them on nullable columns ( #1095 )
2017-08-30 19:54:53 +12:00
Roland Praml and Rob Bygrave
419ac2bf50
FIX: Possible NPE in StringHelper ( #1092 )
2017-08-30 17:49:34 +12:00
Roland Praml and Rob Bygrave
727d088577
FIX: add MAX-DATE as default value for ROW END ( #1091 )
2017-08-30 17:48:36 +12:00
Roland Praml and Rob Bygrave
972d2dcc6b
FIX: nvarchar(max) length specified differently, otherwise this leads to a ddl like this "nvarchar(max)(700)" ( #1090 )
2017-08-30 17:47:21 +12:00
Roland Praml and Rob Bygrave
ff496ad2d3
FIX: EnumToDbIntegerMap did not set 'integerType' - this leads to an incompatible quoting. Constraints like "check in ('1','2','3')" were not accepted by hsqldb on integer columns. ( #1088 )
2017-08-30 17:42:25 +12:00
Roland Praml and Rob Bygrave
24d438ba23
FIX: H2HistoryTrigger honors schema ( #1087 )
2017-08-30 17:38:52 +12:00
rob bygrave
38a95dc5c4
No effective change - Reformat code - ScalarTypeEnumStandard
2017-08-24 22:37:41 +12:00
icode and Rob Bygrave
53426d8493
use jackson configuration [SD]eserialization enum ( #1079 )
...
* use jackson configuration [SD]eserialization enum
https://github.com/FasterXML/jackson-databind/wiki/Serialization-features
https://github.com/FasterXML/jackson-databind/wiki/Deserialization-Features
keep jackson and ebean [SD]eserialization same
`objectMapper.enable(SerializationFeature.WRITE_ENUMS_USING_INDEX);`
* Update ScalarTypeEnumStandard.java
* Update ScalarTypeEnumStandard.java
* Update ScalarTypeEnumStandard.java
* Update ScalarTypeEnumStandard.java
2017-08-24 22:35:36 +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
57231c80a8
#1084 - NPE When DB Migration generation run with @WhoCreated mapping
2017-08-24 22:15:01 +12:00
rob bygrave
2a58b954e9
#1062 - Multi-tenant - Update statements should include tenantId in where clause
2017-08-04 21:16:14 +12:00
Koen De Groote and Rob Bygrave
9772623880
Added the Serializable interface to classes that extend/implement a Comparator with an anonymous/typed class. ( #1078 )
2017-08-03 23:29:56 +12:00
rob bygrave
27b6183aad
Merge branch 'master' of github.com:ebean-orm/ebean
2017-08-03 23:28:35 +12:00
David Hofmann and Rob Bygrave
55e19618f8
fix connection leak in JTA managed transactions ( #1077 )
2017-08-03 23:28:21 +12:00
rob bygrave
b9cc584086
#1080 - NOT IN expression using entity beans / reference beans uses "in"
2017-08-03 20:31:18 +12:00
Koen De Groote and Rob Bygrave
bf5a8c2fad
Changed some boolean checks to use the recommended method of comparing floating point values in Java. ( #1075 )
2017-07-22 13:00:24 +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
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
rob bygrave
23278ce30b
#1058 - Refactor - PlatformPrefix isn't actually used in PlatformDddlWriter, removing.
2017-07-06 20:30:20 +12:00
Koen De Groote and Rob Bygrave
36a5610e25
Using Regular expression objects for splitting and replacing in strings. ( #1059 )
...
* Where possible, replace .split() and .replace() methods with compiled Regex patterns.
This prevents a regular expression from being compiled multiple times during runtime.
* Forgot making one instance `private static final`.
2017-07-06 20:14:51 +12:00
Thibault Meyer and Rob Bygrave
35b467c04f
JSON simple implementation for MSSQL ( #1057 )
...
- Use JSON_VALUE
- Use NVARCHAR type
Signed-off-by: Thibault Meyer <meyer.thibault@gmail.com >
2017-07-03 20:45:48 +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
080bafe18f
#1048 - Fix connection leak on failed findIterate()
2017-06-25 22:39:04 +12:00
rob bygrave
e94c5484a0
#1047 - Fix connection leak on failed beginTransaction()
2017-06-25 21:42:51 +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
8ca3599cbf
#1046 Bump DB migration to 10.1.9 - fix for Checksum mismatch does not stop migration
2017-06-25 14:29:46 +12:00
rob bygrave
283ae74219
Update javadoc on ScalarTypeConverter. Should look to officially deprecate this in favor of AttributeConverter.
2017-06-24 11:35:58 +12:00