rob bygrave
a66edf8077
#1477 Query plan capture - use explain analyze for Postgres
...
... so that we also get DB side timing
2018-12-19 16:55:24 +13:00
Rob Bygrave
94591954b3
1476 - Query plan capture, initial wip capturing bind params ( #1477 )
...
* 1476 - Query plan capture, initial wip capturing bind params
* No effective change - Reset test default db to H2
* #1476 - Query plan capture, initial wip capturing bind params #1477
Update with consumer
* #1476 - Query plan capture, initial wip capturing bind params #1477
Update with query plan request
* #1476 - Query plan capture, initial wip capturing bind params #1477
Extract interface
* #1476 - Query plan capture, initial wip capturing bind params #1477
Extract interface
2018-12-19 16:04:28 +13:00
rob bygrave
8fc6c4c648
#1580 - Refactor move io.ebeaninternal.metric to public package of io.ebean.metric (such that it can be used by plugins like redis l2 cache plugin)
2018-12-19 14:16:36 +13:00
rob bygrave
bafba0babf
#1572 - Support query.select("customer.id").findSingleAttributeList() ... in addition to the expected and working select("customer").findSingleAttributeList()
2018-12-06 00:15:06 +13:00
rob bygrave
e4088c5fbe
#1571 - NPE in cacheable bean with embeddedid on delete
2018-12-05 23:03:15 +13:00
rob bygrave
8c9dae0f88
Merge branch 'extrawhere-on-join' of https://github.com/FOCONIS/ebean into FOCONIS-extrawhere-on-join
2018-11-13 20:51:29 +13:00
Roland Praml
ce403e72a7
FIX: improved support for @DbForeignKey(noConstraint = true) ( #1527 )
...
* FIX: improved support for DbForeignKey(noConstraint = true)
* FIX: Tests for mariadb and sqlserver
* FIX: SqlServer was still incorrect
* FIX: not ommit property for formula
* Update BeanDescriptor.java (typo fix)
fix typo column (no code change!)
2018-11-13 20:44:45 +13:00
Roland Praml
c5536aaeec
FIX: append extraWhere to join
2018-11-10 23:42:02 +01:00
Roland Praml
808004165c
Code cleanup ( #1534 )
...
* removed unused imports (no code change)
* Add missing @Override / @SupressWarnings (no code change)
* FIX: serialization warnings
* FIX: Access to static member
2018-11-10 20:07:01 +13:00
rob bygrave
e06967ff4a
#1512 - Invalid SQL with Postgres + order by nulls first/last + where() expression on ManyToMany
2018-10-24 23:25:48 +13:00
Jonathan Bregler
158ee9a081
Add SAP HANA support ( #1511 )
2018-10-24 21:38:17 +13:00
rob bygrave
fc26765a7e
#1499 - findNative with findIds (or findSingleAttributeList with id property) throws ArrayIndexOutOfBoundsException
2018-10-04 22:51:51 +13:00
rob bygrave
31093babe3
#1498 - findIds() with @SoftDelete bean returns all Ids (when soft deleted ones should not return)
...
And fix delete permanent that cascades
2018-10-04 20:49:30 +13:00
rob bygrave
f8b9ca2034
#1498 - findIds() with @SoftDelete bean returns all Ids (when soft deleted ones should not return)
2018-10-04 20:26:00 +13:00
rob bygrave
c27749ae2d
#1497 - SQL Error with @History + @SoftDelete + @OneToOne fetch=FetchType.EAGER
2018-10-04 19:59:36 +13:00
Roland Praml
fe71c7cc4e
FIX: tableName detection for native statements on SQLServer ( #1494 )
2018-09-26 20:54:22 +12:00
rob bygrave
55a9ba7170
#1475 - @OneToOne child with @SoftDelete that is deleted is still loaded by parent
2018-08-27 21:35:00 +12:00
Rob Bygrave
ded7d44974
Add support for Postgres range partition DDL plus refactor xsd definitions that had got out of sync ( #1465 )
...
* Add partition meta mapping
* Fix to allow schema prefix on select dynamic formula
* Add partition meta mapping
* Migration XSD Update
* Fix to allow schema prefix on select dynamic formula
* Bump ebean-migration to 11.8.1
2018-08-08 23:29:29 +12:00
rob bygrave
6d0556a120
#1460 - ENH: Add FetchGroup ... as a mechanism to specify select() + fetch() separately from Query
...
Change to add generics for FetchGroup
2018-08-02 23:18:44 +12:00
rob bygrave
471605619a
#1460 - ENH: Add FetchGroup ... as a mechanism to specify select() + fetch() separately from Query
2018-07-30 23:51:52 +12:00
rob bygrave
02b6ab0f74
No effective change, move null check on orderBy to prior to parse
2018-07-15 13:55:51 +12:00
rob bygrave
96cc8d7605
#1427 - QueryCache should be cleared, if one of a dependent bean is updated
...
Initial work, does not include propagation across cluster.
2018-06-15 17:36:23 +12:00
rob bygrave
e21839de91
#1424 - Deprecate / Move ... finder methods that take explicit transaction to ExtendedServer API
2018-06-14 11:03:29 +12:00
rob bygrave
7cbae758fc
#1407 - ENH: Add SqlQuery RowMapper and RowConsumer ... for raw JDBC ResultSet mapping and consuming
2018-06-08 02:04:38 +12:00
rob bygrave
fb32cfa170
#1406 - ENH: Add SqlQuery.findSingleAttributeList() ... for returning lists of scalar values via SqlQuery
2018-06-07 22:39:19 +12:00
rob bygrave
ffa8268125
#1405 - ENH: Add SqlQuery.findSingleAttribute() ... for returning single scalar values via SqlQuery
2018-06-07 22:17:01 +12:00
rob bygrave
eba1003c19
#1404 - Query.findCount() with query.setDistinct(true) ... doesn't give count distinct SQL query
2018-06-07 00:32:39 +12:00
rob bygrave
3f8d705439
#1402 - Refactor SQL Logging internals (io.ebean.SQL) such that it is easier to capture for testing/asserts
2018-06-01 14:10:00 +12:00
rob bygrave
d459807af7
#1402 - Refactor SQL Logging internals (io.ebean.SQL) such that it is easier to capture for testing/asserts
2018-06-01 09:19:26 +12:00
Rob Bygrave
74a9019535
#115 - Mapping - Add support for @ElementCollection enhancement
...
Initial support - simple List.
2018-03-20 14:22:29 +13:00
Rob Bygrave
85bfe3d03e
#1345 - Refactor io.ebean.meta.MetaInfoManager API (query execution metrics). Breaking change for people collecting query execution metrics.
2018-03-10 02:51:51 +13:00
Rob Bygrave
55a257a64c
#1334 - ENH: Convert ORM query into DTO query ... with dynamic formula support
2018-03-07 01:52:18 +13:00
Rob Bygrave
a18cac035b
#1333 - ENH: Support "dynamic formula" with findSingleAttributeList() ... e.g. .select("concat(lastName,', ',firstName)")
...
Support property alias via "AS" ... concat(lastName,', ',firstName) as lastName
2018-03-06 21:14:26 +13:00
Rob Bygrave
3ca4efc818
#1331 - ENH: Support Aggregation formula with findSingleAttribute() ... max, min, avg, count and count(distinct ..)
2018-03-06 12:58:43 +13:00
Rob Bygrave
aad5b33db2
#1297 - ENH: Add DtoQuery ... such that we can map native SQL queries automatically into "DTO beans"
2018-03-02 23:32:01 +13:00
Roland Praml
e252f71792
ENH: Optimized binary form for UUID (Type 1) ( #1308 )
...
* ENH: Optimized binary form for UUID (Type 1)
* added missing parameter in test
2018-03-02 12:04:56 +13:00
Roland Praml
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
021d57f4b2
FIX: @Formula on @ManyToOne produces SQLException ... fix appends missing FROM clause for formula joins #1299
2018-03-02 11:43:08 +13:00
Rob Bygrave
06bce35f5a
#1293 - Refactor - move JdbcClose into io.ebean.util ... from io.ebeaninternal.util as it is used in public API (platform code, sequences etc)
2018-02-27 12:56:20 +13:00
Roland Praml
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
da7bb834e7
DbMigration supports altering UniqueConstraints and foreign keys ( #1279 )
...
* NEW: Ebean reads version from pop.properties and prints it at start up
* DDL generation and migration can append a header and platformMigration is prepared to append epilog & prolog to scripts
* FIX: Set identity only, if it is not the platform default type
* Updated reference scripts
* ADD basic support for foreign key migration
* DbMigration detects alter foreign keys
* tests
2018-02-26 14:24:52 +13:00
Rob Bygrave
f8ea5619d0
#1268 - SQL Server fix for "for update" plus Sequences support plus refactor of sequences
2018-02-22 22:45:44 +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
81d48d67a7
#123 - Mapping - Add support for OneToMany JoinTables
2018-02-20 14:40:21 +13:00
Rob Bygrave
9926cad7f1
#1262 - ENH: Support firstRow maxRows with findNative()
2018-02-16 00:11:27 +13:00
Rob Bygrave
a95fd063ae
#1256 - Query where many isNotEmpty() ... on ManyToMany with SoftDelete produces incorrect SQL (Part 2)
2018-02-13 14:52:18 +13:00
Rob Bygrave
abcc651e7f
#1253 - Query where many isNotEmpty() ... on ManyToMany with SoftDelete produces incorrect SQL
...
Fix
2018-02-09 15:00:58 +13:00
Rob Bygrave
0a809b0fb3
#1239 - When Transaction.setSkipCache(true) ... Query with useQueryCache is still use L2 query cache
2018-01-19 10:46:49 +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
4d0b29624e
#1222 - Extend L2 ServerCache API with putAll(), getAll() and removeAll() methods
2017-12-13 19:58:28 +13:00