JBoss Community

Re: EntityManager.find returns null.

created by Joseph Hwang in EJB3 - View the full discussion

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

Start a new discussion in EJB3 at Community