parent
c79d7e3e30
commit
864675ecde
|
@ -43,7 +43,7 @@ public abstract class Messages {
|
||||||
@Bind("destination_device") long destinationDevice);
|
@Bind("destination_device") long destinationDevice);
|
||||||
|
|
||||||
@Mapper(MessageMapper.class)
|
@Mapper(MessageMapper.class)
|
||||||
@SqlQuery("SELECT * FROM messages WHERE " + DESTINATION + " = :destination AND " + DESTINATION_DEVICE + " = :destination_device")
|
@SqlQuery("SELECT * FROM messages WHERE " + DESTINATION + " = :destination AND " + DESTINATION_DEVICE + " = :destination_device ORDER BY " + TIMESTAMP + " ASC")
|
||||||
abstract List<Pair<Long, OutgoingMessageSignal>> load(@Bind("destination") String destination,
|
abstract List<Pair<Long, OutgoingMessageSignal>> load(@Bind("destination") String destination,
|
||||||
@Bind("destination_device") long destinationDevice);
|
@Bind("destination_device") long destinationDevice);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue