[BAEL-4056] Guide to MultipleBagFetchException (#10304)
* Removes DummyEntity * Uses Artist Entity instead of DummyEntity
This commit is contained in:
+3
-3
@@ -29,9 +29,9 @@ public class MultipleBagFetchExceptionIntegrationTest {
|
||||
public void whenFetchingMoreThanOneBag_thenThrowAnException() {
|
||||
IllegalArgumentException exception =
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
String jpql = "SELECT dummy FROM DummyEntity dummy "
|
||||
+ "JOIN FETCH dummy.collection1 "
|
||||
+ "JOIN FETCH dummy.collection2 ";
|
||||
String jpql = "SELECT artist FROM Artist artist "
|
||||
+ "JOIN FETCH artist.songs "
|
||||
+ "JOIN FETCH artist.offers ";
|
||||
|
||||
entityManager.createQuery(jpql);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user