Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
NetBeans HQL编辑器到SQL的错误转换_Sql_Hibernate_Netbeans_Hql_Reverse Engineering - Fatal编程技术网

NetBeans HQL编辑器到SQL的错误转换

NetBeans HQL编辑器到SQL的错误转换,sql,hibernate,netbeans,hql,reverse-engineering,Sql,Hibernate,Netbeans,Hql,Reverse Engineering,我正在尝试从Java Web服务访问MySQL数据库。我正在使用NetBeans IDE并遵循教程 现在,当我尝试测试查询时:从调用中,我得到: org.hibernate.exception.SQLGrammarException: could not execute query blablabla Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in you

我正在尝试从Java Web服务访问MySQL数据库。我正在使用NetBeans IDE并遵循教程

现在,当我尝试测试查询时:从调用中,我得到:

org.hibernate.exception.SQLGrammarException: could not execute query
    blablabla
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from limit 100' at line 1
    bla, bla, bla
翻译后的SQL也是错误的:

select  from
我使用Hibernate反向工程创建了calls.java类

这是
Hibernate.cfg.xml
文件:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
        <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
        <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/datacheck</property>
        <property name="hibernate.connection.username">admin</property>
        <property name="hibernate.connection.password">####</property>
        <property name="hibernate.show_sql">true</property>
        <property name="hibernate.current_session_context_class">thread</property>
        <property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
    </session-factory>
</hibernate-configuration>

org.hibernate.dialogue.mysqldialogue
com.mysql.jdbc.Driver
jdbc:mysql://localhost:3306/datacheck
管理
####
真的
线
org.hibernate.hql.classic.ClassicQueryTranslatorFactory
我似乎找不到错误,我搜索了整个互联网:p

类似的线程是。

我键入了HQL查询

from call
虽然它应该是:

from Call
首字母大写

愚蠢的错误,我以为它是数据库表,但显然它是您必须指定的名称