QuerySet<Choice> qs = choiceManager.all().orderBy("-poll__user__name", "poll__pubDate", "choice");
qs.list(); // TODO for now just tesitng the sql output .. make the test complete...
}
public void testDistinctEntry() throws Exception {
Injector injector = Guice.createInjector(new HibernateModule());
AnnotationConfiguration cfg = injector.getInstance(HibernateUtil.class).getConfiguration();
new SchemaExport(cfg).drop(false, true);
new SchemaExport(cfg).create(false, true);
Managers managers = injector.getInstance(Managers.class);