Hi,
http://weblogs.java.net/blog/jhook/arch ... based.html -- tells about Criteria usage in UI.
What I wanted is a criteria object that doesn't always hit database(Criteria should be able to act on a list of POJOs).
Previously I had written a utility that uses commons collections+reflection to do filtering on list of POJOs at ui layer itself.
Also another cool thing that could be added to hibernate tools is populatePOJO , which would generate test data, given a class as input.
I have already written this if java files uses generics.(also looping of relation is restricted by setting max nesting depth level). Code is just 100 lines but generated pretty huge java files which I was able to use to test hibernate data persistence for huge schema.
Regards, Cigards & Love,
Hari