2016-05-28 7:02 GMT+02:00 Devin Austin <[email protected]>:
> I agree, explicit class literals would be much nicer, but I'm not able to
> picture how that gets passed around. Do you have an example to share?
>
Instead of the base type relying on the sub type's assumed usage of
generics via reflection, you could add a constructor like:
BaseService(Class<R> recordType, Class<P> pojoType) {...}
By removing the default (no args) constructor, you'll force all subtypes to
make explicit decisions about what class literal to pass when calling the
super constructor. Essentially, that's also what DAOImpl does, at least for
the pojoType, the recordType is also available from Table.getRecordType()
Hope this helps,
Lukas
--
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/d/optout.