Roland Praml and Rob Bygrave
6a7e6caa66
Test fixes ( #1628 )
...
* FIX: mysql index sizes
* FIX: osolete whitespace in sqlserver tests
* Updated mssql-jdbc, this fixes problems in the batch insert (https://github.com/Microsoft/mssql-jdbc/pull/912 )
* fix tablename (reserved word in mariadb)
* ignored failing tests for sqlserver
2019-02-04 09:20:09 +13:00
rob bygrave
89beaee0f6
#1621 - Consider clean up white space in generated SQL (as in remove unneeded extra spaces)
2019-01-25 01:47:21 +13:00
rob bygrave
eb1bca805e
#1619 - Support aggregation formula on fetch clause e.g. query.fetch("machineUsage", "sum(totalKms)")
2019-01-23 16:45:47 +13:00
rob bygrave
396fb49acd
#1618 - ENH: Add @Sum ... as short hand for @Aggregation("sum(<property name>)")
2019-01-23 00:29:51 +13:00
rob bygrave
cc17ea8911
No effective change - improve tests for TestAggregationTopLevel
2019-01-22 20:26:50 +13:00
rob bygrave
9dbd903a73
No effective change - Update tests for aggregation queries
2019-01-22 15:53:47 +13:00
rob bygrave
c86e6b3cf9
#1610 - Refactor: Change SQL logging such that jdbc batch use is more obvious
2019-01-21 19:31:28 +13:00
Rob Bygrave and GitHub
6b27a9d280
Support @ManyToOne inside @Embeddables - fix for #52 ( #1608 )
...
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Update test with sql capture
* #52 - @ManyToOne support inside @Embeddables
Update test with cache clearing before hand (such that we hit DB on lazy load)
2019-01-10 03:40:02 +13:00
Roland Praml and Rob Bygrave
50de32af29
Fixed tests, if SqlServer has "Latin1_General_100_BIN2" collation. ( #1600 )
...
This means, all names are interpreted case sensitive by the db
2019-01-08 22:40:14 +13:00
Roland Praml and Rob Bygrave
7ed4435ccc
Fix some testcases fof MySql/SqlServer ( #1591 )
...
* FIX testcases for MariaDB+utf8mb4 (Failure was: "Specified key was too long; max key length is 767 bytes")
* Excluded tests that won't work on SqlServers generated ids
2019-01-08 22:13:55 +13:00
rob bygrave
60c8683914
No effective change - test assert to contains rather than containsExactly
2018-12-21 14:29:50 +13:00
rob bygrave
72263c0af0
No effective change - test assert to contains rather than containsExactly
2018-12-21 13:57:00 +13:00
Rob Bygrave and GitHub
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
7d35789db4
#1573 - Incorrect CamelCase conversion when number proceeds uppercase letter
2018-12-16 16:12:34 +13:00
Rien and Rob Bygrave
0405ceb96c
NPE in cacheable bean with embeddedid on delete ( #1570 )
2018-12-05 21:49:27 +13:00
rob bygrave
e876ef8d87
#1559 - @Lob with @ElementCollection
2018-12-03 21:07:33 +13:00
rob bygrave
315b39813b
#1568 - @OneToMany with orphanRemoval=true ... with @Cache (and not a @ManyToOne) doesn't remove orphans after cache hit
2018-11-30 23:46:11 +13:00
rob bygrave
6d5e0c4766
Add test only - Add test for L2 cache with orphanRemoval
2018-11-30 23:41:23 +13:00
rob bygrave
a2ce17aec0
Add test only - Add test for L2 cache with orphanRemoval
2018-11-30 22:42:36 +13:00
rob bygrave
83776a1eae
#1552 - Remove deprecated methods on Transaction setBatch(PersistBatch) .. migrate to setBatchMode(boolean)
2018-11-19 23:36:15 +13:00
Roland Praml and Rob Bygrave
105f08cca1
FIX: Pairs must not be modified by query ( #1539 )
...
* FIX: Pairs must not be modified by query
* Modification can also occur on inValues.
* fixed tests
* removed obsolete line
2018-11-13 23:41:36 +13:00
Roland Praml and Rob Bygrave
7b4215f4f8
Fix test data ( #1541 )
...
* FIX: Put correct dataType for anniversary
* NEW: Add some deterministic ship dates to reference data
2018-11-13 21:09:53 +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 and Rob Bygrave
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 and Rob Bygrave
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
Roland Praml and Rob Bygrave
61eedb4e9a
Fixed tests that modify BasicData ( #1530 )
2018-11-03 16:38:26 +13:00
rob bygrave
32b599512b
#1524 - @History on @OneToMany with asOf() query and fetch(many property) gives PersistenceException: Error with property[6] dt[93]data[2018-11-01 14:56:18.015][java.sql.Timestamp]
2018-11-01 00:48:46 +13:00
Roland Praml and Rob Bygrave
939397acfc
Add support for JacksonAnnotations at bean-properties ( #1514 )
2018-10-25 22:11:36 +13:00
rob bygrave
156469ae0f
Update tests for running MySql
2018-10-24 22:59:48 +13:00
Jonathan Bregler and Rob Bygrave
158ee9a081
Add SAP HANA support ( #1511 )
2018-10-24 21:38:17 +13:00
rob bygrave
8160d1f01c
#1508 - Invalid SQL used to fetch identity value for @Draftable with database platform that uses Identity but not getGeneratedKeys
2018-10-19 15:56:39 +13:00
rob bygrave
de9823b69b
#1505 - Unidirectional @OneToOne orphanRemoval=true ... does not delete orphan that is replaced
2018-10-12 22:30:06 +13:00
rob bygrave
c27749ae2d
#1497 - SQL Error with @History + @SoftDelete + @OneToOne fetch=FetchType.EAGER
2018-10-04 19:59:36 +13:00
rob bygrave
2c04430185
No effective change - add testSoftDelete_includeSoftDeletes_findOne
2018-10-04 17:14:53 +13:00
Rob Bygrave
0036473971
#1489 - removed the concat-operator "||" and replaced with "concat()"
2018-09-26 21:23:14 +12:00
Roland Praml and Rob Bygrave
a020bb15a1
removed the concat-operator "||" and replaced with "concat()" ( #1489 )
...
* removed the concat-operator "||" and replaced with "concat()"
* using || in postgres
* FIX: Assert-statement
2018-09-26 21:19:28 +12:00
rob bygrave
cd1cdb027f
#1487 - @OneToOne Postgres with different Id types - error PSQLException: ERROR: operator does not exist: uuid = character varying
...
Test
2018-09-24 22:30:28 +12:00
Rob Bygrave
42f9e74d91
#1483 - Invalid SQL with allQuotedIdentifiers true - where t0.[t0.[COND]] in (?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
2018-09-20 23:12:26 +12:00
Rob Bygrave
bb164a0763
OneToOne inserts with idType=SEQUENCE will fail #1480
2018-09-20 21:32:48 +12:00
Rob Bygrave
3a50c264b1
No effective change - add test with softDelete on bean with history
2018-09-20 21:10:41 +12:00
Roland Praml and Rob Bygrave
29d88d7de8
FIX: NPE in StalarTypeLocalTime and StalarTypeMonthDay ( #1479 )
2018-09-20 20:23:46 +12:00
rob bygrave
7809858634
#1478 - MySql DDL, invalid comment included resulting in PersistenceException: Failed to run script
2018-08-31 21:54:48 +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
2df2224286
No effective change - add a new test for OneToOne with fetchType LAZY
2018-08-27 20:00:44 +12:00
rob bygrave
d11bb2c4e5
No effective change - add a new test for OneToMany orphanRemoval=true
2018-08-21 21:08:17 +12:00
Snōwball and Rob Bygrave
f3d26e32ec
Possible fix error with multiple uses of enum ( #1473 )
...
When an enum is exists in the type cache and isn't String, @DbArray
fails. This includes a test that should fail everywhere (order of
reading fields isn't guaranteed afaik and the column needs to be read
before the @DbArray for the test to fail).
2018-08-21 20:26:08 +12:00
rob bygrave
29c5a17202
#1472 - Cascade insert with managed id ... results in update rather than insert statement
2018-08-15 23:12:06 +12:00
rob bygrave
340b100a1a
No effective change - Add test for OneToOne orphanRemoval=true and String Ids (non generated ids)
2018-08-14 22:09:01 +12:00
rob bygrave
95dab97b1b
No effective change - adjust test adding @Draft property to @Draftable Document
2018-08-14 14:16:08 +12:00