Hi, 

I am facing a problem in jOOQ. We have a query with a multiple join, and I 
want to have only a small subset of the Record received. The problem is 
that we have multple "ID" columns and when I execute

BenefitRecord r = record.into(BenefitRecord.class);


The field r.ID is not the one of BenefitRecord, is the one of Users because 
the SQL is:

List<Benefit> benefits = getContext().select().from(USERS)
... Another joins
        
.join(BENEFIT_SNAPSHOT).onKey(Keys.BENEFIT_SNAPSHOT__BENEFIT_SNAPSHOT_LOYALTY_ITEM_SNAPSHOT_FK)


Also it is strange for me that this sentence returns false:

record.field(Tables.BENEFIT.ID).equals(Tables.BENEFIT.ID);


I am doing something wrong?
Thanks

-- 
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.

Reply via email to