forked from Archives/Athou_commafeed
remove warnings
This commit is contained in:
@@ -16,15 +16,12 @@ import io.dropwizard.hibernate.AbstractDAO;
|
||||
|
||||
public abstract class GenericDAO<T extends AbstractModel> extends AbstractDAO<T> {
|
||||
|
||||
private final JPAQueryFactory factory;
|
||||
|
||||
protected GenericDAO(SessionFactory sessionFactory) {
|
||||
super(sessionFactory);
|
||||
this.factory = new JPAQueryFactory(this::currentSession);
|
||||
}
|
||||
|
||||
protected JPAQueryFactory query() {
|
||||
return factory;
|
||||
return new JPAQueryFactory(currentSession());
|
||||
}
|
||||
|
||||
protected JPAUpdateClause updateQuery(EntityPath<T> entityPath) {
|
||||
|
||||
@@ -58,11 +58,11 @@ public class FeedEntryStatus extends AbstractModel {
|
||||
}
|
||||
|
||||
public FeedEntryStatus(User user, FeedSubscription subscription, FeedEntry entry) {
|
||||
setUser(user);
|
||||
setSubscription(subscription);
|
||||
setEntry(entry);
|
||||
setEntryInserted(entry.getInserted());
|
||||
setEntryUpdated(entry.getUpdated());
|
||||
this.user = user;
|
||||
this.subscription = subscription;
|
||||
this.entry = entry;
|
||||
this.entryInserted = entry.getInserted();
|
||||
this.entryUpdated = entry.getUpdated();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -20,9 +20,9 @@ abstract class AbstractCustomCodeServlet extends HttpServlet {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private final UnitOfWork unitOfWork;
|
||||
private final UserDAO userDAO;
|
||||
private final UserSettingsDAO userSettingsDAO;
|
||||
private final transient UnitOfWork unitOfWork;
|
||||
private final transient UserDAO userDAO;
|
||||
private final transient UserSettingsDAO userSettingsDAO;
|
||||
|
||||
@Override
|
||||
protected final void doGet(final HttpServletRequest req, HttpServletResponse resp) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user