rob bygrave
368d22baa6
#1145 - Refactor @ChangeLog based on JSON documents for 'new values' and 'old values'
2017-10-03 01:31:37 +13:00
rob bygrave
daf3d97266
#1144 - Refactor internals - move generated property setting into PersistRequestBean
2017-10-03 00:30:34 +13:00
rob bygrave
2c436c3af5
#1123 - 11.1.1 API change - moved PersistBatch, Platform, TxIsolation and TxType to io.ebean.annotation package
2017-09-15 21:48:37 +12:00
Roland Praml and Rob Bygrave
b66f18bfd6
Fix warnings 2 ( #1130 )
...
* 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
* FIX: deprecated call to JsonParseException
* Remove unused code, check unused variables
2017-09-14 00:32:48 +12:00
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
726c682984
#1116 - Remove references to annotation EbeanDDL which is no longer needed
2017-09-09 13:18:39 +12:00
rob bygrave
0c22a99fdf
#1116 - Remove references to annotation EbeanDDL which is no longer needed
2017-09-09 13:12:40 +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
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
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
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
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
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
95aed6af54
#1060 - findSingleAttributeList doesn't store result in L2 query cache
2017-07-06 21:35:20 +12:00
rob bygrave
520d35b1d6
#963 - NullPointerException on no version provided (when setVersion(null) is used)
2017-06-25 14:44:13 +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
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
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
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
Koen De Groote and Rob Bygrave
951e517caf
Replaced Tail Recursion while while/true loops. ( #1019 )
2017-05-11 22:07:10 +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
Koen De Groote and Rob Bygrave
43408fcb87
Java language level updates concerning Maps. ( #1008 )
...
* Java language level updates concerning Maps.
* Reverts when comments indicated no sync can happen.
2017-04-22 15:48:46 +12:00
Koen De Groote and Rob Bygrave
8432f7b0d5
Some changes that are possible in Java language level 7 and 8. ( #1007 )
2017-04-22 15:43:56 +12:00
Rob Bygrave
964d2d00a2
#1001 - Add @Length and @NotNull, (plus move @Transactional to ebean-annotation)
2017-03-31 21:56:30 +13:00
Péter Csubák and Rob Bygrave
a3dbd4538f
Wrong cast to query and childid propblem fix ( #990 )
2017-03-11 12:21:34 +13:00
Rob Bygrave
3051412d90
#989 - ENH: Support @DbArray with Set ... (addition to the existing List support)
2017-03-10 20:50:07 +13:00
Koen De Groote and Rob Bygrave
289c0253b1
Warning suppressions. ( #986 )
...
* Went over compilation warnings with Xlint. Only imports for DateMidnight are left, as they cannot receive a suppression annotation.
Not doing this one.
* Doing inline fully qualified path of the deprecated path.
2017-03-05 11:08:45 +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
40ca179509
FIX: do not hit database if inherited entity has no children ( #974 )
...
* FIX: do not hit database if inherited entity has no children
* ADD: Testcase for creating references of inherited beans
2017-02-26 12:25:55 +13:00
Roland Praml and Rob Bygrave
ca777d7967
no effective code change: add some try-with resources ( #978 )
...
* no effective code change: add some try-with resources
* moved return statement outside try-with-resources, because otherwise the order changes
2017-02-24 12:52:22 +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
Rob Bygrave
35f3f53443
No effective change - format and imports only
2017-02-24 00:06:13 +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
Koen De Groote and Rob Bygrave
6120a465e1
Simple fixes ( #976 )
...
* Should be only the really simple stuff.
* Final cleanups.
2017-02-23 23:46:51 +13:00
Roland Praml and Rob Bygrave
1292c86b76
removed duplicate StringHelper ( #958 )
2017-01-31 22:10:45 +13:00
Rob Bygrave
b6f21f8649
No effective change - refactor merge AnnotationFields initWhoModified() and initWhoCreated() methods
2017-01-11 20:59:11 +13:00
Nagy Vilmos and Rob Bygrave
8fd04807c7
WhoCreated, WhoModified on OneToMany connections. ( #942 )
...
* WhoCreated, WhoModified on OneToMany connections.
* PostgreSQL table name fix in tests.
2017-01-11 20:54:20 +13:00