2013/4/6 Sven Jacobs <[email protected]>: > I encountered the field comparison issue when I "hacked" QualifiedTable to > be able to specify an Identity. But I reverted these changes so I cannot > test it right now. > > Regarding Identity, why must the return value of getField() be a TableField? > Identity also has a getTable() so that information is redundant. All usages > of getField() that I found either only require a Field or cast the value to > Field. > So can we change the return type to Field?
Good question. TableField might've been a mistake when it was first introduced in jOOQ 1.x. The reason is the simple fact that it is very hard to enforce throughout the API without making those people angry that do not use the code generator. This can be seen easily by the fact that the type is hardly ever used in the jOOQ API: http://www.jooq.org/javadoc/latest/org/jooq/class-use/TableField.html I will check again, why I hadn't considered removing it in jOOQ 3.0... Cheers Lukas > > Am Samstag, 6. April 2013 22:04:05 UTC+2 schrieb Lukas Eder: >> >> 2013/4/6 Sven Jacobs <[email protected]>: >> > >> >> How about TemporaryTable.this.field("ID")? >> > >> > >> > field() returns a Field but a TableField is required. So I'm still stuck >> > :'( >> > Would be much easier if TableFieldImpl were public ;-) >> >> Yeah. It would be easier for a couple of minutes. Then you'd start >> hacking around with those internals and everything would explode ;-) >> >> I've updated issue #2374 with a new comment. >> https://github.com/jOOQ/jOOQ/issues/2374#issuecomment-16003012 >> >> This suggestion might be a solution to your issue where your >> QualifiedField isn't equal to the required TableField >> Could you please provide some feedback on that? >> >> Cheers >> 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/groups/opt_out. > > -- 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.
