Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] [Newbie] Problems with createNativeQuery



christopher delahunt wrote:
> 
> Hello,
> 
> What database are you using?  This error is common when the case used 
> for the returned column name doesn't match the case of the column name 
> defined in the JPA annotations.  In this case, since the @Id column name 
> wasn't specified, it will default to "ID".  So it could be that the 
> default string "ID" isn't matching what is returned, for example if the 
> database returns "id".  Try specifying the Id column name to match what 
> is returned by your database/driver and see if that helps.
> 
> Best Regards,
> Chris
> 

Thats solved it! Thanks to everyone who helped.

Regards

-- 
View this message in context: http://www.nabble.com/-Newbie--Problems-with-createNativeQuery-tp25362312p25364121.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top