关于Hiberante操纵没有映射文件的表的问题

来源:百度知道 编辑:UC知道 时间:2024/07/04 07:00:07
一个学生类Student和一个课程类Clazz建立了多对多的映射关系 产生了一张中间表t_student_clazz我在这张表中又手动添加了分数字段,课程名称字段
我想在Hibernate中查询这张表 于是我写了 "select * from t_student_clazz where studentid=? and clazz=?"这样的SQL语句 并向其中传入了数据类型相匹配的参数 结果出现
org.springframework.orm.hibernate3.HibernateSystemException: No Dialect mapping for JDBC type: 7; 这样的异常 请问该如何解决

Student student="from Student where id=?";
student.getclazz();
然后在取你想要的东西,很久没用Hibernate了都忘了这样应该能行,写的较简略不知道你能看懂不