> > In the short run, however, short of having Cloneable models...
Ah, that was the crucial piece of information that I was missing: You can't easily clone the model. I thought you could because all other parts of jOOQ I looked at can do this. So another approach would be to add int Query.fetchCount() to the API. The implementation should build SQL which ignores anything between "select" and "from". The implementation of this would be in the dialect. I'm not sure if that always gives the same results when you use grouping and similar things, though. Maybe you can throw an error when the SQL contains dangerous elements. Regards, A. Digulla -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
