Why EclipseLink maps a NVARCHAR type to an Object?

余生长醉 提交于 2019-12-24 11:44:19

问题


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

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

I suppose it should map to type String.

Why is this happening?


回答1:


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

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.



来源:https://stackoverflow.com/questions/5883670/why-eclipselink-maps-a-nvarchar-type-to-an-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!