mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
20 lines
492 B
Java
20 lines
492 B
Java
package com.commafeed.backend.dao;
|
|
|
|
import java.util.List;
|
|
|
|
import javax.ejb.Stateless;
|
|
|
|
import com.commafeed.backend.model.Feed;
|
|
import com.commafeed.frontend.utils.ModelFactory.MF;
|
|
import com.google.common.collect.Iterables;
|
|
|
|
@Stateless
|
|
@SuppressWarnings("serial")
|
|
public class FeedService extends GenericDAO<Feed, Long> {
|
|
|
|
public Feed findByUrl(String url) {
|
|
List<Feed> feeds = findByField(MF.i(proxy().getUrl()), url);
|
|
return Iterables.getFirst(feeds, null);
|
|
}
|
|
}
|