Hi,
I'm beginner using SmartGWT with Hibernate and PostgreSQL.
My problem is the following: I want to search the words on database with Accent Insensitive (and ç/c too). However, I can't able.
"
public Criterion getPlanFilterCriteria(Integer scopeIdWorkgroup, Integer scopeIdCompany, Integer scopeIdProject){
List<Criterion> searchList = new LinkedList<Criterion>();
searchList.add(new Criterion("is_active", OperatorId.EQUALS, Boolean.TRUE));
String titleStr = title.getValueAsString();
if(titleStr!=null && !"".equals(titleStr.trim())){
searchList.add(new Criterion("title", OperatorId.ICONTAINS, titleStr));
}"
How can I solve my problem?
Thanks.
I'm beginner using SmartGWT with Hibernate and PostgreSQL.
My problem is the following: I want to search the words on database with Accent Insensitive (and ç/c too). However, I can't able.
"
public Criterion getPlanFilterCriteria(Integer scopeIdWorkgroup, Integer scopeIdCompany, Integer scopeIdProject){
List<Criterion> searchList = new LinkedList<Criterion>();
searchList.add(new Criterion("is_active", OperatorId.EQUALS, Boolean.TRUE));
String titleStr = title.getValueAsString();
if(titleStr!=null && !"".equals(titleStr.trim())){
searchList.add(new Criterion("title", OperatorId.ICONTAINS, titleStr));
}"
How can I solve my problem?
Thanks.