작성
·
222
0
@Transactional
public List<Map<String, Object>> selectCollectionProcessor() {
queryFactory = new JPAQueryFactory(em);
Map<String, Object> map = new HashMap<>();
List<Collection> fetch = queryFactory.selectFrom(collection)
....
.fetch();
List<Feed> list = new ArrayList<>();
for (FeedCollection collection : fetch) {
feedList.add(collection.getFeed());
}
....
queryFactory.update(collection)
....
return list;
}