Tag: Unknown预览模式: 普通 | 列表
08-06
02

org.hibernate.MappingException: Unknown entity: java.lang.String

在session.delete(参数)时有时会出现以下的错误:
org.hibernate.MappingException: Unknown entity: java.lang.String
是因为api中没有提供参数为String的方法
(1)void delete(Object object)
          Remove a persistent instance from the datastore.
(2)void delete(String entityName, Object object)
          Remove a persistent instance from the datastore.

查看更多...

Tags: Exception Unknown

分类:Hibernate | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2196