I have a generic sql builder, but it creates unattached records. I had to
iterate over the returned results and attach them. Am I missing something?
public <T extends UpdatableRecordImpl<?>> List<T> retrievedData(Class<T>
clazz) {
Select<Record> sql = buildSql(clazz);
List<T> retVal = sql.fetchInto(clazz);
for (T t : retVal) {
t.attach(_context.configuration());
}
return retVal;
}
Craig
--
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.