Just started using JOOQ and so far I really like it but I don't think I 
have a complete picture of how to use it yet..

At the moment, a store method for me looks like this:

public boolean store(Pupil pupil)
    {
        PupilsRecord record;
        if (pupil.getId() == null)
        {
            record = create.newRecord(PUPILS, pupil);
        }
        else
        {
            record = create.fetchOne(PUPILS, 
PUPILS.ID.equal(pupil.getId()));
            record.setName(pupil.getName());
            etc...           
        }

        return record.store() == 1;
    }

Is there someway I can auto fill the record instead of manually updating 
every field in the record when updating?

Any other comments about how to store in JOOQ?


Regards,

BTJ

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