08-06
02
org.hibernate.MappingException: Unknown entity: java.lang.String
作者:Java伴侣 日期:2008-06-02
在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.
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.
评论: 0 | 引用: 0 | 查看次数: 2251
发表评论