Toplink is real sucky. This works in Hibernate but throws an error in Toplink.
"Select s from SalesOrder s where s.status.code not like 'Unconfirmed' and ( s.id in (714,653,-1))"
The error thrown is really stupid.
" expecting RIGHT_ROUND_BRACKET, found 'in'
Toplink has some way to go to catch up to hibernate.