Rob Bygrave
98e014f8c8
#1300 - NEW: FetchCountDistinct ... add example to javadoc + support chaining use via ExpressionList
2018-03-02 14:30:38 +13:00
Roland Praml and Rob Bygrave
c1b022c123
NEW: FetchCountDistinct - query can return distinct values with their counts ( #1300 )
...
* NEW: FetchCountDistinct - query can return distinct values with their counts
* Have to disable asserts, because of #1298
2018-03-02 11:46:41 +13:00
Roland Praml and Rob Bygrave
11e180aa3f
FIX: introduced TransactionalTestCase, so that changes to DB are not persisted ( #1298 )
...
* FIX: introduced TransactionalTestCase, so that changes to DB are not persisted
* removed license header
2018-03-02 09:10:21 +13:00
Roland Praml and Rob Bygrave
bb418456e3
Misc fixes ( #1290 )
2018-02-27 11:06:35 +13:00
Roland Praml and Rob Bygrave
78f8d48e2e
FIX: more timing issues - mysql does not support resolution in millis ( #1288 )
2018-02-27 11:00:58 +13:00
Roland Praml and Rob Bygrave
a712be2917
auomatically append "order by id" when paging and query.orderById = true ( #1275 )
...
Add ServerConfig.setDefaultOrderById() and query.orderById(boolean) ... to control automatically append "order by id" with paging query
2018-02-27 10:09:52 +13:00
Roland Praml and Rob Bygrave
e3425a8850
FIX: possible resource leaking in testcases (all created transactions are closed by followed try statement) ( #1273 )
2018-02-26 08:40:53 +13:00
Rob Bygrave
8ee68ac5e1
#1269 - Paging queries should not ALWAYS append an order by ID ... but only when the order by is empty
2018-02-22 22:40:22 +13:00
Rob Bygrave
f2d438f21a
Test only change - fix test assert for sql server
2018-02-22 22:11:56 +13:00
Rob Bygrave
17abd6d977
#1255 - Regression on raw LIKE expression with slashes on Postgres
...
Tests
2018-02-09 21:25:36 +13:00
Rob Bygrave
823cb45221
Cleanup tests for Oracle
2018-02-02 23:17:03 +13:00
Rob Bygrave
51d2e4c600
ENH: Add ProfileLocation - Part 2 - performance metrics for transactions with label and profileLocation
2018-01-22 14:54:27 +13:00
Rob Bygrave
07cdf64ece
#1238 - Refactor MetaInfoManager - collect query plan stats, fix collection of stats on UpdateQuery
2018-01-19 01:07:37 +13:00
Rob Bygrave
8cff85fdda
#1233 - Remove deprecated CacheMode.RECACHE (migrate to CacheMode.PUT)
2018-01-09 19:50:26 +13:00
Rob Bygrave
932986a6b5
#1232 - Performance: Add support for a second read-only DataSource (for implicit query-only transactions)
2018-01-09 16:35:22 +13:00
rob bygrave
9f91d8bcf9
No effective change - modify specific test to run with Postgres specific syntax
2017-12-27 23:23:01 +13:00
Rob Bygrave
ac97444ad1
No effective change - add test for @Aggregation with order by clause
2017-12-27 13:49:46 +13:00
Rob Bygrave
7ff3d703f7
#1215 - ENH: Add Query setBeanCacheMode(CacheMode) ... with a view to it replacing the existing setUseCache(boolean) and setLoadBeanCache(boolean)
2017-11-19 20:16:40 +13:00
Rob Bygrave
fcff571664
#1212 - ENH: Add query findSingleAttribute()
2017-11-18 22:36:08 +13:00
Rob Bygrave
06e033f23f
#1181 - ENH: Add @FetchPreference support - Secondary query generation is based on order of fetch statements
2017-11-08 23:20:08 +13:00
Rob Bygrave
9b2b2f7787
#1205 - ENH: Add support for raw expression array binding with Postgres - e.g. raw(" foo = any(?) ", collection)
2017-11-08 00:56:13 +13:00
rob bygrave
0dbba7a211
#1189 - ExpressionList.isNull and SoftDelete
2017-11-01 21:26:15 +13:00
rob bygrave
1e1c518641
#1186 - ENH: Support using TableValues / Array for select prop in (?) queries
...
Use Postgres Array ANY and ALL without select unnest
2017-10-31 22:09:35 +13:00
rob bygrave
6e62b72fb9
#1186 - ENH: Support using TableValues / Array for select prop in (?) queries
2017-10-31 02:53:20 +13:00
rob bygrave
89dac3820b
#1182 - Error when applied disjunction to filterMany
2017-10-30 22:06:57 +13:00
Rob Bygrave
331f49824f
#1172 - Refactor - remove internal unused DefaultOrmQuery logSecondaryQuery (as we use LoggedSqlCollector)
2017-10-16 23:49:23 +13:00
Rob Bygrave
94a857d345
#1171 - ENH: Add Finder.update() method ... returning a UpdateQuery<T>
2017-10-16 23:25:56 +13:00
Rob Bygrave
1005f177fd
#1170 - ENH: Add isIn() methods as alias to in() on ExpressionList (for use with Kotlin where in is a keyword)
2017-10-16 23:13:49 +13:00
rob bygrave
2c5bf98d0b
Merge branch 'master' of github.com:ebean-orm/ebean
2017-10-09 21:13:32 +13:00
rob bygrave
45a571bd97
#1165 - ENH: Add to Finder - currentTransaction() and flush() methods ... (as useful shortcuts)
2017-10-09 21:13:12 +13:00
Roland Praml and Rob Bygrave
d0ca75c25b
FIX: connection leak in query-iterator ( #1164 )
2017-10-09 20:46:02 +13:00
Roland Praml and Rob Bygrave
1909ba1557
Fix like escaping for DB2, Oracle and MySql ( #1162 )
...
* Extended test case to show problem
* FIX: Proper escaping of backslash in like/contains queries
* Had to replace "like ?" assertions in tests with "like " as mysql will do a "like binary ? escape'|'" now to be case sensitive
2017-10-06 09:46:56 +13:00
rob bygrave
f2179fca2d
#1123 - 11.1.1 API change - moved PersistBatch, Platform, TxIsolation and TxType to io.ebean.annotation package
2017-09-15 21:48:53 +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
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
rob bygrave
8c0232fdb8
#1114 - Deprecate findUnique() - please migrate to findOne() - update tests
2017-09-08 22:48:46 +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
Roland Praml and Rob Bygrave
e908d16ba8
Pr/add tests ( #1103 )
...
* ADD: Testcase for Sqlserver-6.2.0 driver
* CHG: Removed Row-limit - so we need no special handling when sqlserver-platform generates a "select top 100" statement
* ADD: additional asserts to TestQueryCache
* CHG: Ignore test for sqlserver
2017-09-01 20:17:56 +12:00
rob bygrave
b9cc584086
#1080 - NOT IN expression using entity beans / reference beans uses "in"
2017-08-03 20:31:18 +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
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
rob bygrave
db298a349e
#996 Add findOne() and findOneOrEmpty()
2017-05-19 23:38:40 +12:00
Roland Praml and Rob Bygrave
933595ceea
ADD: Testcases for "fetchDistinct" ( #1024 )
...
* ADD: Testcases for "fetchDistinct"
* Updated the tests for #1024
2017-05-14 17:39:07 +12:00
rob bygrave
711701932a
#1023 - Bug with findSingleAttributeList() when used against @ManyToOne / foreign key
2017-05-11 23:20:19 +12:00
Rob Bygrave
67ef0cd5d9
Refactor - repackage / move test code only
2017-05-01 20:39:49 +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
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
Rob Bygrave
0e2900d796
#980 - fix several bugs in findSingleAttibute - Refactor moving logic into DefaultOrmQuery setDefaultSelectClause() from findSingleAttributeList() (to support alternate calling via EbeanServer)
2017-02-26 13:08:10 +13:00
Roland Praml and Rob Bygrave
a46e086dc4
fix several bugs in findSingleAttibute ( #980 )
...
* add test case for distinct on id property
* suggested fix for "select distinct id"
* add test case for distinct with fetch
* FIX: .setDistinct(true) can be used in conjunction with fetch() now
* add test case for distinct with beans that have a disriminator column
* FIX: discriminator column is only read if also Id is read.
* fine tuned the test case
* added test cases for findSingleAttributeList without distinct
* improved fix to support also findSingleAttribute without distinct
* ADD: Bonus test case - assertion not yet verified
2017-02-26 12:37:36 +13:00
Rob Bygrave
d9e884b8bd
#969 - ENH: Add Finder.query(String ormQuery) ... helper method
2017-02-09 23:27:13 +13:00