-->
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.  [ 1 post ] 
Author Message
 Post subject: Novice in trouble with HQL
PostPosted: Fri May 06, 2011 6:00 pm 
Newbie

Joined: Fri May 06, 2011 5:55 pm
Posts: 3
Hello,

I've got a message like: org.hibernate.hql.ast.QuerySyntaxException: Datos is not mapped [from Datos] at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:158)

when I try to do a Run HQL query (from datos, I also try from Data), throught left-clicking on hibernate.cfg.xml.

I don't know what I must do to get the results.

I explain the situation:

Netbeans 7.0
MySqld Database: agenda
Table: datos

Datos.hbm.xml

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 06-may-2011 14:41:05 by Hibernate Tools 3.2.1.GA -->
<hibernate-mapping>
<class name="agenda_pkg.Datos" table="datos" catalog="agenda">
<id name="id" type="int">
<column name="id" />
<generator class="assigned" />
</id>
<property name="nombre" type="string">
<column name="nombre" not-null="true" />
</property>
</class>
</hibernate-mapping>

¿Any idea?

Thank you so much.

Jordi.


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

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.