- Přidán fulltext index na číslo požadavku.

- Opravena velikost písmen v SQL dotazu pro úklid tabulek s přiloženými soubory.
- Informativní číslo verze zvýšeno na 2.0
This commit is contained in:
2015-04-12 18:53:43 +02:00
parent ac90b0a2e3
commit 76969a2baf
4 changed files with 9 additions and 9 deletions
@@ -36,6 +36,7 @@ public class RequirementBase extends BaseData implements FilterableRequirement {
@OrderBy("CENTRE, WORDER")
private List<Workflow> workflow;
@Column(name = "NUMSER", unique = true)
@Field(index = Index.YES, analyze = Analyze.YES)
private String numser;
@Column(name = "REQ_DATE")
private Date reqDate;
@@ -5,6 +5,11 @@ import info.bukova.isspst.data.FileContent;
import info.bukova.isspst.data.FileMetainfo;
import info.bukova.isspst.services.fulltext.Extractor;
import info.bukova.isspst.services.fulltext.ExtractorFactory;
import org.apache.commons.codec.binary.Hex;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import java.io.ByteArrayInputStream;
import java.io.File;
@@ -17,12 +22,6 @@ import java.security.NoSuchAlgorithmException;
import java.util.List;
import java.util.UUID;
import org.apache.commons.codec.binary.Hex;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
/**
* @author Pepa Rokos
*
@@ -267,7 +266,7 @@ public class DocumentFileStorageImpl extends AbstractFileStorage<FileMetainfo> i
}
}
SQLQuery sql = queryDao.getSession().createSQLQuery("delete from file_contents where id not in(select CONTENT_ID from file_metainfo)");
SQLQuery sql = queryDao.getSession().createSQLQuery("delete from FILE_CONTENTS where ID not in(select CONTENT_ID from FILE_METAINFO)");
sql.executeUpdate();
}
}