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 '8 pt0_.id as id0_, pt0_.pjad as pjad0_, pt0_.pjname as pjname0_, pt0_.pjnumber a' at line
尝试着用ssh框架,出现了这问题,请教大神
这是sql错误吧。你看看你的sql字段在Hibernate里面的映射有没有错误
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
org.hibernate.dialect.SQLServerDialect
employee/vo/Pt.hbm.xml
employee/vo/User.hbm.xml
</bean>
这个意思应该是你的sql语句在at line后面的一个数字处出现了错误,断点,得到这条sql语句,在复制这条sql语句到数据库客户端,测试下可不可以运行,在哪里报错。
映射文件
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
org.hibernate.dialect.SQLServerDialect
employee/vo/Pt.hbm.xml
employee/vo/User.hbm.xml
sql 语句错误了。截取出来测试吧。
语法错误吧,把你的sql贴出来