rob bygrave
800f854a12
#1043 Additional test for RawSql with upper case SQL
2017-06-23 19:46:47 +12:00
Roland Praml and Rob Bygrave
0413c22e6e
no effective code change - fixed warnings about serialization, override, raw-types ( #1032 )
2017-06-23 19:33:03 +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
d04954e46f
#999 - @DiscriminatorColumn columnDefinition is ignored for DDL generation
2017-05-20 15:03:21 +12:00
rob bygrave
0c1a9786a3
#996 Add findOne() and findOneOrEmpty() - SqlQuery
2017-05-19 23:48:41 +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
Rien Nentjes
2a64a02211
Discriminator query cache error
2017-05-04 14:16:38 +02: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
7178085680
#993 - ENH: Add flush() to EbeanServer and Model to make it more accessible than the current transaction.flushBatch() - Add Ebean.flush()
2017-03-13 23:13:41 +13:00
Rob Bygrave
4d82b86f81
#993 - ENH: Add flush() to EbeanServer and Model to make it more accessible than the current transaction.flushBatch()
2017-03-13 23:07:17 +13:00
Rob Bygrave
1d99a5c5a4
#992 - API Change - Change Transaction.close() to throw PersistenceException rather than IOException
2017-03-13 22:10:08 +13:00
Rob Bygrave
c8d01828b3
#991 ENH: Add forUpdateNoWait() and forUpdateSkipLocked() options ... #528 ENH: Improve exception handling
2017-03-13 20:50:22 +13:00
Rob Bygrave
3051412d90
#989 - ENH: Support @DbArray with Set ... (addition to the existing List support)
2017-03-10 20:50:07 +13: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
Roland Praml and Rob Bygrave
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 and Rob Bygrave
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 and Rob Bygrave
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 and Rob Bygrave
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 and Rob Bygrave
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 and Rob Bygrave
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