Hi,
I am trying to wite a database bridge between old and new Firebird database using Java SE and Hibernate. Old database is to obsolete but still is used by old application (there is noway to replace it and noway to use utf-8 in old one).
In old database are a lot of characters from charset 1250 and when I try make a select then the results of the query are empty. Simply: hibernate is unable to compare criteria from query and in the database.
Is there any solution how to set charset 1250 for this query?
Code:
private static String QUERY_BATCH_IS_PENDLING = "from Dlmuster dl where dl.info like 'PŘÍPRAVA'";
Session session = HibernateUtil.getSessionFactory().openSession();
session.beginTransaction();
Query q = session.createQuery(QUERY_BATCH_IS_PENDLING);
Thank you for your advices.