Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
#115 - adds query defns for OutboxEvent entity
Browse files Browse the repository at this point in the history
  • Loading branch information
danhaywood committed Oct 1, 2019
1 parent 00d117c commit 0dccde8
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@
@javax.jdo.annotations.PersistenceCapable(
schema = "isispublishmq",
table="OutboxEvent")
@javax.jdo.annotations.Queries( {
@javax.jdo.annotations.Query(
name="findByTransactionIdAndSequence", language="JDOQL",
value="SELECT "
+ "FROM org.isisaddons.module.publishmq.dom.jdo.events.OutboxEvent "
+ "WHERE transactionId == :transactionId "
+ "&& sequence == :sequence "),
@javax.jdo.annotations.Query(
name="findOldest", language="JDOQL",
value="SELECT "
+ "FROM org.isisaddons.module.publishmq.dom.jdo.events.OutboxEvent "
+ "ORDER BY timestamp ASC, transactionId ASC, sequence ASC "
+ "RANGE 0,30")
})
@DomainObject(
editing = Editing.DISABLED,
objectType = "isispublishmq.OutboxEvent"
Expand Down

0 comments on commit 0dccde8

Please sign in to comment.