-->
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: Query editor can't work!
PostPosted: Sat Jul 23, 2005 2:37 am 
Senior
Senior

Joined: Wed Dec 17, 2003 4:24 am
Posts: 188
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

3.0.1

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<!--
Auto-generated mapping file from
the hibernate.org cfg2hbm engine
-->
<class name="lyo.hotmail.domain.Author" table="author" catalog="test">
<id name="authorid" type="string">
<column name="AUTHORID" length="100" />
<generator class="assigned" />
</id>
<property name="name" type="string">
<column name="NAME" length="100" />
</property>
<property name="age" type="integer">
<column name="AGE" />
</property>
<property name="email" type="string">
<column name="EMAIL" length="150" />
</property>
<set name="articles" inverse="true">
<key>
<column name="AUTHOR_ID" length="100" />
</key>
<one-to-many class="lyo.hotmail.domain.Article" />
</set>
</class>
</hibernate-mapping>
:


NO

org.hibernate.exception.SQLGrammarException:could not execute query

MySQL 4.1:

NO

INFO:

Hi everyone:

I want to use hibernate3 Query editor to run HQL. But when I execute a hql, the query result console give me an exception:
Code:
org.hibernate.exception.SQLGrammarException:could not execute query

Why?My HQL grammar is correct. Why it says SQLGrammarexception? Help!

_________________
You are not alone...


Top
 Profile  
 
 Post subject: Bug
PostPosted: Sat Jul 23, 2005 7:54 am 
Newbie

Joined: Wed Jul 06, 2005 8:57 am
Posts: 6
Location: Matrix
Hi.
Try to delete attribute 'catalog="test"'.
Current released version contains a bug on MySQL. It should be already fixed in the CVS.

Vity

_________________
Image


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.