The generate tag is a bit messy and not guaranty to worked, fortunately you can avoid it. Basic statement generation will be improved in version 3.0.
Have you tried to watch what is the generated SQL in the log ? -- Cheers, Gilles <a href="http://www.amazon.com/gp/registry/6JCP7AORB0LE">Wish List</a>

