多个连接可以是一个条件吗?
final CriteriaBuilder builder = entityManager.getCriteriaBuilder();
CriteriaQuery<Game> query = builder.createQuery(Game.class);
final Root<Game> game = query.from(Game.class);
final ListJoin<Game, Store> store = game.join(Game_.stores);
final ListJoin<Game, Category> category = game.join(Game_.categories);
即使没有谓词,第二个连接(类别)也会使结果不同。
这段代码有什么问题?