-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Problem with Coding in HQL change to sql
PostPosted: Sun Apr 03, 2005 7:27 am 
Newbie

Joined: Sun Apr 03, 2005 5:36 am
Posts: 1
Hibernate version:3.0 final
Spring version: 1.2 rc 1

Name and version of the database you are using:oracle

The generated SQL (show_sql=true):


Problem with Coding in HQL change to sql

String Hql = "from Customer c where c.name='测试' ";
getHibernateTemplate().find(Hql);

//////////////////////////////////////////////
i can see the sql in the tomcat console:


Hibernate: select customer0_.CUSTOMER_NO as CUSTOMER1_, customer0_.CODE as CODE9
_, customer0_.NAME as NAME9_, customer0_.STATUS as STATUS9_, customer0_.LAST_OPE
RATOR_NO as LAST5_9_ from CUSTOMER customer0_ where (customer0_.NAME='????')


by the way, it's run well in the 3.0 rc1 version.

Thank for you help!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 03, 2005 11:08 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you dont show mapping nor stracktrace so not much we can do

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.