mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
14 lines
776 B
XML
14 lines
776 B
XML
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
<entity-mappings version="2.0" xmlns="http://java.sun.com/xml/ns/persistence/orm"
|
||
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
|
|
xsi:schemaLocation="
|
||
|
|
http://java.sun.com/xml/ns/persistence/orm
|
||
|
|
http://java.sun.com/xml/ns/persistence/orm_2_0.xsd">
|
||
|
|
|
||
|
|
<named-query name="Entry.unreadByFeed">
|
||
|
|
<query>select e from FeedEntry e where e.feed=:feed and not exists (select s from FeedEntryStatus s where s.entry = e and s.user =:user and s.read=true)</query>
|
||
|
|
</named-query>
|
||
|
|
<named-query name="Entry.readByFeed">
|
||
|
|
<query>select e from FeedEntry e where e.feed=:feed and exists (select s from FeedEntryStatus s where s.entry = e and s.user =:user and s.read=true)</query>
|
||
|
|
</named-query>
|
||
|
|
</entity-mappings>
|