I understand the intended SchemaExport use, but it would be nice to broaden it. Poluting the app with code like this:
Code:
List list = AbcFinder.findXyz(session, value);
if (!list.isEmpty())
{
Abc found = (Abc)list.get(0);
// some code
}
compared to the cleaner:
Code:
Abc found = AbcFinder.findXyz(session, value);
if (found != null)
{
// some code
}
makes no sense to me.
So, I'll submit a request to JIRA and I'll try to provide a patch. It should be pretty easy to do, but probably I would have to add a <param/> to the BasicRenderer for backward compatibility.