rob bygrave
9e1d7ab722
#1631 - Change logging for SqlUpdate ... such that it is more consistent with other SQL logging wrt JDBC batch
2019-02-07 17:20:49 +13:00
rob bygrave
0c03a8b925
#1630 - ENH: Improve jdbc batch use when persisting ManyToMany intersection changes
2019-02-05 17:35:58 +13:00
rob bygrave
f9d13cbba7
Merge branch 'master' of github.com:ebean-orm/ebean
2019-02-04 11:55:04 +13:00
rob bygrave
f787483e30
#1629 - ENH: Add sqlQuery(sql) and sqlUpdate(sql) ... as alias for createSqlQuery(sql) and createSqlUpdate(sql)
2019-02-04 11:54:45 +13:00
rob bygrave
9e33f36808
#1629 - ENH: Add sqlQuery(sql) and sqlUpdate(sql) ... as alias for createSqlQuery(sql) and createSqlUpdate(sql)
2019-02-04 11:14:54 +13:00
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
c3f586c461
Merge branch 'feature/1624-Database'
2019-02-03 22:21:36 +13:00
rob bygrave
961a7ef7ea
#1626 - ENH: Add SqlUpdate.setParams(Object ... ) and SqlQuery.setParams(Object ... ) ... as convenient alternative to many setParameter() calls
2019-02-02 22:17:07 +13:00
rob bygrave
a24e6b6064
#1623 - DbOrderByTrim doesn't remove asc/desc if you're sorting by a function called on a column
...
This fix removes the word boundary check prior to the blank space for asc and desc (allowing the preceeding char to be a brace or anything)
2019-02-02 00:40:56 +13:00
rob bygrave
f3cb7e2cfd
#1624 - ENH: Create io.ebean.DB as alias for Ebean and io.ebean.Database as alias for EbeanServer
2019-02-01 22:53:41 +13:00
rob bygrave
41abf34ef6
#1621 - Consider clean up white space in generated SQL (as in remove unneeded extra spaces)
2019-01-25 01:52:23 +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
5052afbd07
#1620 - Support case statement in order by clause
2019-01-23 22:28:53 +13:00
rob bygrave
d89a58482c
no effective change - tidy test order by parse
2019-01-23 21:48:49 +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
3483372ae3
#1617 - save() on a reference bean causes insert to occur ... results in duplicate key exception
...
Tests broken by fix as the test inserts only included id value in the insert
2019-01-22 21:59:04 +13:00
rob bygrave
4e1f817ade
#1617 - save() on a reference bean causes insert to occur ... results in duplicate key exception
...
Tests that reproduce the issue (supplied by Andre - thanks for that)
2019-01-22 21:54:03 +13:00
rob bygrave
d4139aa8ef
#1616 - Enhance EQL grammer 1) Allow select without ( and ) 2) support aggregate functions min,max,sum,count,avg 3) support quoting fetch paths (that are keywords)
...
Fix test for Postgres any()
2019-01-22 21:23:16 +13:00
rob bygrave
a6cfed7c44
#1616 - Enhance EQL grammer 1) Allow select without ( and ) 2) support aggregate functions min,max,sum,count,avg 3) support quoting fetch paths (that are keywords)
2019-01-22 21:12:18 +13:00
rob bygrave
cc17ea8911
No effective change - improve tests for TestAggregationTopLevel
2019-01-22 20:26:50 +13:00
rob bygrave
141f0a8b16
Testing out concept - aggregation formula on fetch clause
2019-01-22 15:56:20 +13:00
rob bygrave
9dbd903a73
No effective change - Update tests for aggregation queries
2019-01-22 15:53:47 +13:00
rob bygrave
b8105190d1
#1615 - findNative() with List/array named parameter throws error ... query plan key doesn't take bind count into account
2019-01-22 01:56:58 +13:00
rob bygrave
1d49e5b341
#1613 - When using transaction.setPersistCascade(false) ... a Delete query should not cascade
2019-01-21 22:09:15 +13:00
rob bygrave
4a0806e453
#1612 - query.setMapKey("customer.id") throws NullPointerException (ie. mapKey is a path rather than local property)
2019-01-21 21:57:30 +13:00
rob bygrave
0cb8bb0415
#1611 - ENH: Add inRange expression (as half open expression) ... (property >= lowerValue and property < upperValue)
...
Add inrange to EQL grammer
2019-01-21 20:28:38 +13:00
rob bygrave
471691c747
#1611 - ENH: Add inRange expression (as half open expression) ... (property >= lowerValue and property < upperValue)
2019-01-21 20:01:57 +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
7984a9ccd1
No effective change - update test to use try with resources
2019-01-16 11:13:43 +13:00
André Camilo and Rob Bygrave
bac53a5d75
FIX: insert in batch OneToOne relationship ( #1609 )
2019-01-15 11:56:52 +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
rob bygrave
2b0669c2ae
#1594 - Support loading of beans with invalid JSON content
...
Adjust to be per query via query.setAllowLoadErrors() rather than a
global config via ServerConfig.
2019-01-09 20:03:26 +13:00
rob bygrave
fb5eb0cdd2
Merge branch 'feature/load-error' of https://github.com/FOCONIS/ebean into FOCONIS-feature/load-error
2019-01-09 19:25:50 +13:00
rob bygrave
3351882915
#1602 - Adjust test adding sql checking for discriminator
2019-01-09 19:20:05 +13:00
Roland Praml and Rob Bygrave
31c6d16e73
A query on inherited beans can be restricted to the subtype of one of its children ( #1602 )
...
ENH: A query on inherited beans can be restricted to the subtype of one of its children
2019-01-09 19:15:04 +13:00
rob bygrave
cd8c12a9a8
#1566 - ENH: Support query.setBaseTable() ... to query against dynamic table (ala manual table partitioning)
2019-01-09 19:13:35 +13:00
rob bygrave
3207ae1f08
No effective change - tidy test
2019-01-09 19:05:16 +13:00
Roland Praml and Rob Bygrave
5fe532c393
Refactor: relpaced system-property "ebean.ignoreExtraDdl" with serverConfig flag ( #1597 )
2019-01-09 16:17:11 +13:00
rob bygrave
8a34d6050b
#1607 - ENH: Add query.exists() query ... as a convenience for "does a row exist" check
2019-01-09 13:59:53 +13:00
rob bygrave
8544712448
#1606 - Bean with Inheritance and OneToMany with JoinTable and cascade ... doesn't cascade save on all bean types
2019-01-09 12:29:28 +13:00
Roland Praml and Rob Bygrave
b18bc82b8a
FIX: possible NPE in DeleteUnloadedForeignKeys.deleteCascade and in initPostTarget ( #1601 )
2019-01-08 22:41:43 +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
7aef4ff1bd
#1605 - RuntimeException: Nothing in batch? ... when lazy loading on partially populated L2 bean cache
2019-01-08 21:44:18 +13:00
rob bygrave
5bcad17ae1
No effective change - add a test for filterMany with isNotEmpty()
2019-01-08 16:50:28 +13:00
rob bygrave
b1beb0b787
#1596 - NullPointerException at findOne() with filterMany()
2019-01-07 22:21:54 +13:00
Roland Praml
4d93b70bf9
Supports loading of corrupt beans
2019-01-03 11:43:50 +01:00
rob bygrave
0397140e0b
#1589 - Refactor internals move SqlQuery sqlDistinct ... to SqlTreeNodeRoot (query plan)
2018-12-21 15:57:07 +13:00
rob bygrave
82def2710e
No effective change - adjust test to have at least 1 column on insert
2018-12-21 15:51:09 +13:00