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
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
4b2481d3ea
#1039 Fix for - reset of dirty flag on L2 cached entities after lazy load
2017-06-23 23:20:17 +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
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
100d314e63
#1035 Update for - FIX: deleting and adding same bean in beanCollection leads to deletion in DB
...
If use Modify mode we need to listen for both adds and removes to support sorting (can't rely on undoDelete() due to ordering)
2017-06-19 23:34:44 +12:00
Roland Praml and Rob Bygrave
7b8a85106c
FIX: deleting and adding same bean in beanCollection leads to deletion in DB ( #1035 )
2017-06-19 22:50:20 +12:00
rob bygrave
58c5f01e2b
#1042 - JtaTransaction is TenantMode.DB aware
2017-06-19 22:28:15 +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
Roland Praml and Rob Bygrave
a1f95bf25e
Pr/id in as collection2 ( #1034 )
...
* ENH: Changed idIn(List) to idIn(Collection)
* ADD: sanity checks in IdBinder & special case if ID-list is empty
2017-06-19 22:05:56 +12:00
Koen De Groote and Rob Bygrave
5a3669e1db
Noticed that this boolean parameter was ignored. ( #1041 )
...
After some quick analysis, implemented that way it probably should be used.
Of course, this could have been on purpose, please advise.
2017-06-19 21:39:58 +12:00
Koen De Groote and Rob Bygrave
b4e2c89e2d
Moved a few variables closer to the point where they are actually used, but only in cases where this means moving them past a (potential) return/throw statement. ( #1029 )
2017-05-21 21:51:58 +12:00