mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
less database calls
This commit is contained in:
@@ -4,9 +4,13 @@
|
||||
xsi:schemaLocation="
|
||||
http://java.sun.com/xml/ns/persistence/orm
|
||||
http://java.sun.com/xml/ns/persistence/orm_2_0.xsd">
|
||||
|
||||
|
||||
<named-query name="Statuses.deleteOld">
|
||||
<query>delete from FeedEntryStatus s where s.entryInserted < :date and s.starred = false</query>
|
||||
</named-query>
|
||||
|
||||
|
||||
<named-query name="EntryStatus.existing">
|
||||
<query>select new com.commafeed.backend.dao.FeedEntryDAO$EntryWithFeed(e, f) FROM FeedEntry e LEFT JOIN e.feedRelationships f WITH f.feed.id = :feedId where e.guidHash = :guidHash and e.url = :url</query>
|
||||
</named-query>
|
||||
|
||||
</entity-mappings>
|
||||
Reference in New Issue
Block a user