I'm also playing with ejbql thanks to middlegen and xdoclet i got also very strange behaviours from jboss and i began being suspicious about the ejql support...
anyway could you tell me how managed to intercept the query from jboss to your rdbms please ?
thanks in advance
My guess is your prim key class is broken. Are all the fields public?