mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1114 - Deprecate findUnique() - please migrate to findOne() - update tests
This commit is contained in:
@@ -42,9 +42,9 @@ public class TestL2CacheWithSharedBean extends BaseTestCase {
|
||||
|
||||
tunedInfo.tuneQuery((SpiQuery<?>) query);
|
||||
|
||||
query.findUnique(); // PUT into cache
|
||||
query.findOne(); // PUT into cache
|
||||
|
||||
FeatureDescription fd2 = query.findUnique(); // LOAD cache
|
||||
FeatureDescription fd2 = query.findOne(); // LOAD cache
|
||||
|
||||
fd2.getDescription(); // invoke lazy load (this fails)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user