mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
19 lines
501 B
Java
19 lines
501 B
Java
|
|
package com.commafeed.backend.dao;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
import javax.ejb.Stateless;
|
||
|
|
|
||
|
|
import com.commafeed.frontend.utils.ModelFactory.MF;
|
||
|
|
import com.commafeed.model.FeedCategory;
|
||
|
|
import com.commafeed.model.FeedSubscription;
|
||
|
|
import com.commafeed.model.User;
|
||
|
|
|
||
|
|
@Stateless
|
||
|
|
public class FeedSubscriptionService extends GenericDAO<FeedSubscription, Long> {
|
||
|
|
|
||
|
|
public List<FeedSubscription> findAll(User user) {
|
||
|
|
return findByField(MF.i(MF.p(FeedCategory.class).getUser()), user);
|
||
|
|
}
|
||
|
|
}
|