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
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
Roland Praml
40ca179509
FIX: do not hit database if inherited entity has no children ( #974 )
...
* FIX: do not hit database if inherited entity has no children
* ADD: Testcase for creating references of inherited beans
2017-02-26 12:25:55 +13:00
Roland Praml
a315c7c11e
More small fixes ( #977 )
...
* no effecitve code change: add @FunctionalInterface to designated interfaces
* no effective code change: removed obsolete imports
* no effective code change: removed obsolete @SuppressWarnings
* no effective code change: add @SuppressWarnings to UUID_PLACEHOLDER
2017-02-24 08:42:27 +13:00
Roland Praml
40f5596837
add missing @override ( #975 )
...
* no effective code change: add missing @override in "io.ebean.*" package
* no effective code change: add missing @override in "io.ebeaninternal.api.*" package
* no effective code change: add missing @override in "io.ebeaninternal.server.*" package
* no effective code change: add missing @override in "io.ebeaninternal.util.*" package
* no effective code change: add missing @override in "io.ebeanservice.*" package
* no effective code change: add missing @override in "src/test/java/"
2017-02-24 00:01:25 +13:00
Koen De Groote
6120a465e1
Simple fixes ( #976 )
...
* Should be only the really simple stuff.
* Final cleanups.
2017-02-23 23:46:51 +13:00
Rob Bygrave
d9e884b8bd
#969 - ENH: Add Finder.query(String ormQuery) ... helper method
2017-02-09 23:27:13 +13:00
Roland Praml
1292c86b76
removed duplicate StringHelper ( #958 )
2017-01-31 22:10:45 +13:00
Rob Bygrave
2fa4345742
#945 - Invalid SQL when using @Aggregation with a fetch() to a ManyToOne - missing columns in GROUP BY
2017-01-12 00:42:27 +13:00
Rob Bygrave
d9147327c1
#944 - Incorrect join (should be outer join) when predicate only path traverses an optional relationship to a mandatory relationship
2017-01-11 23:21:50 +13:00
Rob Bygrave
5ad9a611f9
#941 - @Transactional( type = TxType.MANDATORY ) creates a new transaction even if there is one available
2017-01-11 22:41:22 +13:00
Nagy Vilmos
8fd04807c7
WhoCreated, WhoModified on OneToMany connections. ( #942 )
...
* WhoCreated, WhoModified on OneToMany connections.
* PostgreSQL table name fix in tests.
2017-01-11 20:54:20 +13:00
Rob Bygrave
8d39b0a996
#940 - Allow findNative to use @Formula properties (add test for MySql := use with RawSql and findNative)
2017-01-09 22:29:15 +13:00
Rob Bygrave
ab2d5fb4c8
No effective change - update test to use trimmed sql (trim out sql column alias to allow it to be optional)
2016-12-20 21:14:12 +13:00
Rob Bygrave
809901ff13
No effective change - update H2 specific test
2016-12-20 21:02:36 +13:00
Rob Bygrave
fcc58d77e8
No effective change - update tests using Platform enum rather than name
2016-12-20 20:41:55 +13:00
Rob Bygrave
bc93a82b1a
#900 - Error - Can't fetch JsonDB field - org.postgresql.util.PSQLException: ERROR: could not identify an equality operator for type json
2016-12-20 03:00:08 +13:00
Rob Bygrave
84e1e12b66
#900 - Error - Can't fetch JsonDB field - org.postgresql.util.PSQLException: ERROR: could not identify an equality operator for type json
2016-12-20 02:59:47 +13:00
Rob Bygrave
cf37fda3f4
#921 - Refactor internals - Change internal use of "findRowCount" to "findCount"
2016-12-13 19:51:11 +13:00
Rob Bygrave
0eef69a277
#920 - Change logger package to io.ebean (e.g. for logging SQL instead of org.avaje.ebean.SQL use io.ebean.SQL)
2016-12-11 23:42:38 +13:00
Rob Bygrave
971e2dc91b
#919 - io.ebean package initial
2016-12-11 23:23:22 +13:00
Rob Bygrave
0322b37ae7
no effective change - format test code
2016-11-17 20:17:46 +13:00
Thibault Meyer
969a3c8b8d
Replace explicit type with <>
2016-11-06 10:00:12 +01:00
Robin Bygrave
5122ea4b4d
#416 - RawSql issue with inheritance - PersistenceException: Inheritance type for discriminator value
2016-05-19 22:44:55 +12:00
Robin Bygrave
4e9e11ac34
#668 - ENH: Add ability to register a custom IdGenerator
2016-05-06 17:01:15 +12:00
Robin Bygrave
86de7e845e
Testing CI - add sql logging for TestEncrypt run on CI server
2016-01-27 22:39:03 +13:00
Robin Bygrave
bc3cf1348a
#543 - Tidy up test logging - adjust test LoggedSqlCollector
2016-01-27 18:25:16 +13:00
Robin Bygrave
7e66e0db1f
Extend test for #322 - using inheritance discriminator with RawSql
2015-09-03 15:57:38 +12:00
Robin Bygrave
d1584bed40
Change tests for better portability - Internal changes for DB Migration / DDL generation #369
2015-08-06 05:28:25 +12:00
Robin Bygrave
e95d3304bf
#322 - RawSql fetch object with inheritance
2015-07-14 23:09:38 +12:00
Rob Bygrave
1109d412e7
Fix for #154 - @OrderBy on a @OneToMany property is not used when lazy loading
2014-06-26 00:37:31 +12:00
Rob Bygrave
34347fc3e1
Fix for #77 - NPE when lazy loading on a OneToMany that is not a leaf
2014-03-31 22:06:10 +13:00