This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getObject returning 'null' on SQL Server nvarchar type

 
Gary Frick
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to return a Java Object so as to satisfy the Map 'get' method. But the getObject only returns 'null' for SQL type of 'nvarchar'. What gives?
== "TitleOfCourtesy" is from the Microsoft Northwind DB.
cur_BB = rs.getObject("TitleOfCourtesy");

Integer frequency = (Integer)BBmap.get(cur_BB);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic