If some of you use Symfony2, you should see what I'm referring to: The entity is basically an object as persisted in the database, and the repository is a class implementing methods to get it, or all, or a subset.
As far as I can see, the JTable class kind of implements a bit of both of these logics, but not quite all of them (for instance, it seems to me that you can't quite query a subset of Elements, nor really rename the table rows in your code to fit another standard). Is there still a way better than constructing these things yourself?