0

我正在尝试创建一个网络服务。

我有一个带有 Hibernate 注释的 UserVO 类,其属性为登录名、密码和 ID。

我需要返回对象,但是使用这些注释我有这个错误:

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

Exceptions details : java.lang.reflect.InvocationTargetException

但是,如果我接受注释,事情就会奏效。

4

1 回答 1

1

当您将对象公开为 Web 服务时,协议无法为注释创建定义......

我强烈建议您创建一组可以转换为您的休眠模型并返回的数据传输对象......这将简化您的设计。

于 2012-05-26T19:01:20.237 回答