[jboss-user] [EJB3] - Re: EntityManager.find returns null.

Joseph Hwang do-not-reply at jboss.com
Mon May 16 06:39:57 EDT 2011


Joseph Hwang [http://community.jboss.org/people/aupres] created the discussion

"Re: EntityManager.find returns null."

To view the discussion, visit: http://community.jboss.org/message/605423#605423

--------------------------------------------------------------
I found the reason. Oracle DB schema of ID is CHAR(10) . When I execute EntityManager.find, Oracle returns 10-length string. So SELECT statement returns null because 'where' does not match. How can I trim the returned 10-length string value from Oracle?
--------------------------------------------------------------

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

Start a new discussion in EJB3 at Community
[http://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/20110516/594c104e/attachment-0001.html 


More information about the jboss-user mailing list