diff --git a/src/main/java/info/bukova/isspst/data/RequirementBase.java b/src/main/java/info/bukova/isspst/data/RequirementBase.java index a10bc695..b6fc5241 100644 --- a/src/main/java/info/bukova/isspst/data/RequirementBase.java +++ b/src/main/java/info/bukova/isspst/data/RequirementBase.java @@ -36,6 +36,7 @@ public class RequirementBase extends BaseData implements FilterableRequirement { @OrderBy("CENTRE, WORDER") private List workflow; @Column(name = "NUMSER", unique = true) + @Field(index = Index.YES, analyze = Analyze.YES) private String numser; @Column(name = "REQ_DATE") private Date reqDate; diff --git a/src/main/java/info/bukova/isspst/storage/DocumentFileStorageImpl.java b/src/main/java/info/bukova/isspst/storage/DocumentFileStorageImpl.java index 9edc1ab9..4ff84e90 100644 --- a/src/main/java/info/bukova/isspst/storage/DocumentFileStorageImpl.java +++ b/src/main/java/info/bukova/isspst/storage/DocumentFileStorageImpl.java @@ -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 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(); } } diff --git a/src/main/webapp/app/mailForm.zul b/src/main/webapp/app/mailForm.zul index ffed7433..33ac6a6f 100644 --- a/src/main/webapp/app/mailForm.zul +++ b/src/main/webapp/app/mailForm.zul @@ -83,7 +83,7 @@ viewModel="@id('vm') @init('info.bukova.isspst.ui.mail.MailForm')" width="800px" -