English 中文(简体)
带注注解的休眠返回对象
原标题:Hibernate return object with annotation

我试图创建一个网络服务。

我有一个带 Hiberate 注释的班级用户VO, 带有属性登录、 密码和 ID 。

我需要归还对象,但附有这些说明,我有一个错误:

Service invocation threw an exception with message : null; Refer to the server log for more details

Exceptions details : java.lang.reflect.InvocationTargetException

但如果我拿了说明, 事情就起作用了。

最佳回答

当您将对象作为网络服务曝光时,协议无法创建注释定义...

我强烈建议你 创建一套数据传输对象 可以转换成你的冬眠模型 然后再... 这样就能简化设计

问题回答

暂无回答




相关问题
IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

ASP.net web services

I am using a web service which sets the Thread.CurrentPrincipal object while logging in and soon later when another webmethod of the same web service accesses Thread.CurrentPrincipal, its different/...

Unity Container Disposing and XML Web Service

I am registering some wrapers over un-managed objects in container. How can I dispose of them at the end of the container s lifetime? Please bear in mind I have an XML Web service.

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

热门标签