Thank you very much for your enquiry.
This is a known issue: https://github.com/jOOQ/jOOQ/issues/4867

It affects only the current DefaultRecordMapper implementation, i.e.
whenever you're using a fetchInto(Class), or into(Class) method.

For the record, this question is also asked here on Stack Overflow:
http://stackoverflow.com/q/36374962/521799

Hope this helps,
Lukas

2016-04-02 17:45 GMT+02:00 <[email protected]>:

> I have a database which contains table PLAYERS_APPEARANCE where there's
> field named "Class".
>
> I'm querying with jooq like so
>
> PlayersAppearance pp = getCtx().select(PLAYERS_APPEARANCE.RACE,
> PLAYERS_APPEARANCE.CLASS,PLAYERS_APPEARANCE.GENDER). from(
> PLAYERS_APPEARANCE).where(PLAYERS_APPEARANCE.ID.equal(id)).fetchInto(
> PlayersAppearance.class).get(0);
>
> PlayersAppearance.class is POJO generated by jooq. For Class field it
> generated *class_* field in java and I access it with *getClass_()* method.
> class_ is named to avoid conflict with native method getClass(), but it
> also breaks the database field value somehow
>
>
> *Problem*
>
> PlayersApperance pa = pa.getClass_() returns NPE
>
>
> <http://i.stack.imgur.com/Upt9f.png>
>
>
> Why?
>
> --
> 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.
>

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