[jboss-user] [EJB3] - Re: Problem with native query

Jackie Li do-not-reply at jboss.com
Tue May 8 02:14:20 EDT 2012


Jackie Li [https://community.jboss.org/people/lwpro2] created the discussion

"Re: Problem with native query"

To view the discussion, visit: https://community.jboss.org/message/734193#734193

--------------------------------------------------------------
seems native query treat char as Character.
solution1: use query.unwrap(SQLQuery.class) 
solution2: simply cast the column to varchar, cast(LAE.legalAccessEntityCode as varchar(12))
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/734193#734193]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120508/ab3390f0/attachment.html 


More information about the jboss-user mailing list