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.

Reply via email to