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