Subversion Repositories SmartDukaan

Rev

Rev 36250 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36250 Rev 37361
Line 4... Line 4...
4
import java.time.LocalDateTime;
4
import java.time.LocalDateTime;
5
 
5
 
6
@Entity
6
@Entity
7
@Table(name = "mail_outbox")
7
@Table(name = "mail_outbox")
8
@NamedQueries({
8
@NamedQueries({
9
        @NamedQuery(name = "MailOutbox.selectPending", query = "FROM MailOutbox WHERE status = 'PENDING' OR (status = 'FAILED' AND retryCount < 1) ORDER BY createdAt ASC"),
9
        @NamedQuery(name = "MailOutbox.selectPending", query = "FROM MailOutbox WHERE status = 'PENDING' OR (status = 'FAILED' AND retryCount < 2) ORDER BY createdAt ASC"),
10
        @NamedQuery(name = "MailOutbox.selectOldSent", query = "FROM MailOutbox WHERE status = 'SENT' AND sentAt < :cutoff"),
10
        @NamedQuery(name = "MailOutbox.selectOldSent", query = "FROM MailOutbox WHERE status = 'SENT' AND sentAt < :cutoff"),
11
        @NamedQuery(name = "MailOutbox.selectOldSentBySenderType", query = "FROM MailOutbox WHERE status = 'SENT' AND sentAt < :cutoff AND senderType = :senderType")
11
        @NamedQuery(name = "MailOutbox.selectOldSentBySenderType", query = "FROM MailOutbox WHERE status = 'SENT' AND sentAt < :cutoff AND senderType = :senderType")
12
})
12
})
13
public class MailOutbox {
13
public class MailOutbox {
14
 
14