hi i'm trying to get from a mySql DB a query using Hibernates HQL *
public String getDetailsByUserAndFullPath(String user,String fullpath) {
String temp2 = "%" + user + "%";
String temp3 = "%" + fullpath + "%";
// Query query =
Query query_bd = session
.createQuery("from Files files where user like ? and full_path like ? escape '\'");
query_bd.setString(0, temp2);
query_bd.setText(1, temp3);
List<Files> list = query_bd.list();
the problem is the fullpath contains \ such as c:\temp\example.docx and i get e query error using the escape i'm shure it's a small thing but i'm killing myself for two hours already!! please help tnx