ITeye博客

初学hibernate,遇到了一个菜菜的问题.google解决

cui09 · 2007-03-07 16:07 · Markdown

在daos中的对数据操作中sql中表的名字要和对应的实体类名字一样才可以。

pojo的名字为Sctype.java.那么sql 就得这样写from Sctype.而不能是from sctype.

Query query = session.createQuery("from Sctype");

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。