This content has been marked as final. Show 3 replies
The error I receive is:
WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: S0022 ERROR [JDBCExceptionReporter] Column 'myPrimaryKey' not found.
In case you're wondering why I added the MyClass.class part....
If I take the MyClass.class part out I get a NOT YET IMPLEMENTED error.
I got it w/o using the native query.
final Query q = em.createQuery( "select count(o) " + "from MyTable o " + "where o.myColumn = :col " );
I'm just wondering how to get a similar result with nativeQuerying.