在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.