Update the order of the loop log, so that the latest log will be shown
on the top.
Issue-ID: CLAMP-383
Change-Id: I8d377f923f2bdd80deb5db1828f36cc4adc76a9f
Signed-off-by: xg353y <xg353y@intl.att.com>
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
+import javax.persistence.OrderBy;
import javax.persistence.Table;
import org.hibernate.annotations.Type;
@Expose
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "loop")
+ @OrderBy("log_instant DESC")
private Set<LoopLog> loopLogs = new HashSet<>();
public Loop() {