-->
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: Hibernate console problems
PostPosted: Thu Jun 16, 2005 11:45 am 
Newbie

Joined: Tue Jun 14, 2005 12:44 pm
Posts: 19
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.0
Mapping documents:
<?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
package="com.intellinx.channels.internal">

<class name="MessageDBObject" table="Messages" lazy="true">
<id name="messageId">
<column name="MessageId" length="36"/>
</id>
<property name="SessionId" length="36"/>
<property name="MessageType" length="36"/>
<property name="MessageVersion" length="36"/>
<property name="MessageArrivalTime" />
<list name="fields" table="MessageFields">
<key not-null="true">
<column name="MessageId" length="36"/>
</key>
<list-index column="FieldIndex" />
<composite-element class="GXMessageFieldDBObject">
<property name="FieldName"/>
<property name="FieldValue"/>
</composite-element>
</list>
</class>

</hibernate-mapping>

---------------------

Hello everyone.
I cannot run the HQL console with this mapping file (running "creatae session factory" on one of the cfgs). I receive a Mapping exception with a stack trace that refers to the DTD being wrong somehow.

I noticed that the JAR I am using (hibernate3) is different than my plug-in's JAR. Attempts at using the same JAR for both libs have come up short (other bugs have occured).
My XMLs are hand-made but follow the standard and work fine in the app. My only problem is running the HQL console

Has anyone gotten the HQL console to work properly? Are there any other working tools available? I desperately need a way to run queries without compiling.

Thanks
Eyal


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 16, 2005 2:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if you posted in the right forum AND included the stacktrace from the error log then we might be able to help ;)

and yes, i run queries every day with this - so it works.

_________________
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.