When I use an Arabic value in an HQL query, it returns null.
I added the unicode and UTF in MySQL datasource.
I got SQL generated from the Hibernate query and ran it in workbench, and it gave me a result:
Query q = se.createQuery("from Days where d_name = 'الخميس' " );
I run the generated SQL query on workbench and it gives me a result. I also tried to query with d_id and it runs without problems, so i think that the problem is with Arabic values.
I expect the result to come back as an object, but it returns null!