Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
Debug level Hibernate log excerpt:
Hi,everyone.
I use hibnerate + JBX to write a piece of code to fetch data in database out. And when I use list = session.find("from sometable"); Noting is wrong. But when I want to use list = session.find("from" + " " + str); It is reported that could not excute query. I wonder whether the HQL language can only use just a whole string to query. But when I use this: list = session(new String("from" + " " + str));, the same error occured.
Please help!
Thanks, Have a nice day!
Regards,
Geroge Ren
_________________ THINK!
|