为什么EclipseLink将NVARCHAR类型映射到Object? [英] Why EclipseLink maps a NVARCHAR type to an Object?

查看:99
本文介绍了为什么EclipseLink将NVARCHAR类型映射到Object?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SQL Server 2005中使用了最新版本的EclipseLink(2.2.0)。

I am using the latest version of EclipseLink (2.2.0) with SQL Server 2005.

生成类时,类型NVARCHAR映射为对象中的Object类型。类。

Generating the classes, the type NVARCHAR is mapped to type Object in the classes.

我想它应该映射为String类型。

I suppose it should map to type String.

为什么会这样?

推荐答案

如何生成类?您正在使用Eclipse Dali吗?

How are you generating the classes? Are you using Eclipse Dali?

我只是将生成代码更改为String。也许报告您正在使用的IDE的错误。 EclipseLink本身不会生成类。

I would just change the generate code to String. Perhaps report a bug with the IDE you are using. EclipseLink itself, does not generate classes.

这篇关于为什么EclipseLink将NVARCHAR类型映射到Object?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆