rob bygrave
bf3f8ecff5
Refactor plugin.BeanType addInheritanceWhere() to just take Query and not SpiQuery
2017-10-05 00:35:12 +13:00
rob bygrave
7524903aea
#1152 - Refactor EJson internals extracting io.ebean.service.SpiJsonService
2017-10-05 00:29:43 +13:00
rob bygrave
90cf3fddc9
#1151 - Refactor add util AnnotationUtil ... moving common annotation searching methods there
2017-10-05 00:00:44 +13:00
rob bygrave
f02a552cdf
#1150 - Refactor convert RawSql and RawSqlBuilder into interfaces and push the parsers into io.ebeaninternal
2017-10-04 23:03:12 +13:00
rob bygrave
5a5cb7ffbd
#1149 - Refactor move PersistenceContextUtil into ... io.ebeaninternal
2017-10-04 21:12:39 +13:00
rob bygrave
9f9ec8ef9f
#1147 - Refactor move DbMigration internals into io.ebeaninternal - change to use DbMigration.create() - move IdentityType handling into internal from DbIdentity
2017-10-04 20:49:04 +13:00
rob bygrave
62707caf64
#1147 - Refactor move DbMigration internals into io.ebeaninternal - change to use DbMigration.create() - move PlatformDdl into internal
2017-10-04 20:30:57 +13:00
rob bygrave
c6fc7a032d
#1147 - Refactor move DbMigration internals into io.ebeaninternal - change to use DbMigration.create() - DbOffline & ServerConfig
2017-10-04 19:44:29 +13:00
rob bygrave
10faa1fae6
#1147 - Refactor move DbMigration internals into io.ebeaninternal - change to use DbMigration.create() - initial move
2017-10-04 19:36:27 +13:00
Rob Bygrave
a86af94a8c
Reduce logging level only - no functional change
2017-10-03 15:35:21 +13:00
Rob Bygrave
8301cb634e
#1027 - ENH: Add a Slow query event listener ... to log or listen to queries that exceed some defined execution time
2017-10-03 15:04:30 +13:00
Rob Bygrave
721654d033
#1140 - Error loading embedded instance
...
The issue was due to the loaded status not being recursively set on embedded
beans after inserts. The test case invoked lazy loading due to that which
lead to the issue.
2017-10-03 12:47:29 +13:00
Rob Bygrave
fc996659f2
#1139 - NoSuchMethodError: javax.persistence.Embedded.prefix()Ljava/lang/String;
2017-10-03 11:02:38 +13:00
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
b2e0271ce7
#1128 - Allow "2 word SQL" like TRUNCATE t, ANALYSE t etc
2017-09-13 21:40:17 +12:00
rob bygrave
c7a7651602
#1127 - Remove the ebean.query.globallimit of 1 million "backstop"
2017-09-13 21:22:03 +12:00
rob bygrave
1e6678cbb4
#1126 - Regression bug in 10.4.5 with new line character use with SqlQuery, SqlUpdate and CallableSql
2017-09-13 21:14:19 +12:00
Roland Praml and Rob Bygrave
a6e4e181bf
Feature/cache improvements 2 ( #1067 )
...
* New Mode to control queryCache behavior
* Collections form the cache have to be read only
* findCount not queried in query cache
* return modifiable collections from the cache
* FIX: Compile errors
* No effective code change: reformat code / javadoc
2017-09-12 23:40:18 +12:00
Roland Praml and Rob Bygrave
b8e1dffca2
replaced findUnique by "default" method in interfaces. ( #1124 )
2017-09-12 23:20:04 +12:00
rob bygrave
7e8ed72b7b
#1125 - ENH: Add a SpiContainerBootup API ... to enable automatic startup of docker containers (for testing usually)
2017-09-12 22:44:37 +12:00
rob bygrave
f77f3c3d6e
#1119 - Deprecate TxRunnable and TxCallable - migrate to plan JDK Runnable and Callable. Add explicit executeCall() method
2017-09-10 20:47:26 +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
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
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
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