Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 94322fe0 authored by Guillaume Thomazon's avatar Guillaume Thomazon
Browse files

Convert index to int to sort by index

git-svn-id: https://scm.gforge.inria.fr/authscm/ycadoret/svn/gazelle/Maven/gazelle-proxy/trunk@41163 356b4b1a-1d2b-0410-8bf1-ffa24008f01e
parent 00d524e4
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,8 @@
value="#{message.connection.id}" />
</rich:column>
<rich:column>
<rich:column sortBy="#{'indexInt'}"
sortOrder="#{dataTableStateHolder.sortOrders['indexInt']}">
<f:facet name="header">
<h:outputText value="#{messages['net.ihe.gazelle.proxy.Index']}" />
</f:facet>
......
UPDATE pxy_abstract_message SET index_int= CAST(index AS integer) where index != '?';
......@@ -100,16 +100,28 @@ public abstract class AbstractMessage implements Comparable<AbstractMessage>, Se
@Column(name = "result_oid")
private ArrayList<String> resultOid = new ArrayList<String>();
@Column(name = "index")
private String index;
@Column(name = "index_int")
private int indexInt;
public int getIndexInt() {
return indexInt;
}
public void setIndexInt(int index_int) {
this.indexInt = index_int;
}
public String getIndex() {
return index;
}
public void setIndex(String index) {
this.index = index;
setIndexInt(Integer.parseInt(index));
}
public ArrayList<String> getResultOid() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment