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
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
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
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
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
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
4b2481d3ea
#1039 Fix for - reset of dirty flag on L2 cached entities after lazy load
2017-06-23 23:20:17 +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
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
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
Koen De Groote and Rob Bygrave
9e2923f571
For debug and trace levels, either added isEnabled check or made arguments parameterized. ( #1028 )
2017-05-21 21:50:13 +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
79f7c73983
#999 - Refactor tidy for ... @DiscriminatorColumn columnDefinition is ignored for DDL generation
2017-05-20 15:22:06 +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
c1bed9f578
#996 Add findOne() and findOneOrEmpty()
2017-05-19 23:38:24 +12:00
rob bygrave
c7cbe4ead8
Read the new @Length annotation
2017-05-19 23:00:10 +12:00
rob bygrave
6ad808003a
Refactor - remove unused ebeandeploy.dtd
2017-05-14 21:11:00 +12:00
rob bygrave
70de6101db
Refactor, remove unused SqlReservedWords
2017-05-14 21:10:24 +12:00
rob bygrave
461c2aef60
#946 - Treat primitive numbers (long, int, short, float, double) as NOT NULL wrt DDL generation
2017-05-14 01:31:28 +12:00
rob bygrave
711701932a
#1023 - Bug with findSingleAttributeList() when used against @ManyToOne / foreign key
2017-05-11 23:20:19 +12:00
Koen De Groote and Rob Bygrave
951e517caf
Replaced Tail Recursion while while/true loops. ( #1019 )
2017-05-11 22:07:10 +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
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
Yuan Xuegui and Rob Bygrave
54ef0e7465
FIX BUG:and blank space after 1=1 ( #1016 )
...
FIX BUG:and blank space after 1=1 (Noop expression for equals null with @SoftDelete)
2017-04-30 22:50:03 +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
Koen De Groote and Rob Bygrave
335c4de109
Static code analysis. ( #1017 )
2017-04-30 14:47:02 +12:00
Rob Bygrave
a120c2aaee
#947 - Treat primitive boolean as NOT NULL - DDL as not null
2017-04-25 13:17:58 +12:00