Fix history bug.

This commit is contained in:
Paulo Gustavo Veiga
2013-03-29 14:51:21 -03:00
parent 81d3d591fa
commit dce29eda19
5 changed files with 12 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ public class MindMapHistory {
private int id;
private Calendar creationTime;
private User editor;
private byte[] xml;
private byte[] zippedXml;
private int mindmapId;
public MindMapHistory() {
@@ -69,15 +69,15 @@ public class MindMapHistory {
this.editor = editor;
}
public byte[] getXml() {
return xml;
public byte[] getZippedXml() {
return zippedXml;
}
public void setXml(byte[] value) {
xml = value;
public void setZippedXml(byte[] value) {
zippedXml = value;
}
public byte[] getUnzipXml() throws IOException {
return ZipUtils.zipToBytes(getXml());
return ZipUtils.zipToBytes(getZippedXml());
}
}