MyType object = DSL.using(...).select(...).from(...).fetchOne().into(MyType.class);
MyType object = DSL.using(...).select(...).from(...).fetchOneInto(MyType.class);
When a record is null after DSL select query the method into() will throw a NullPointerException
into() should throw any other BusinessException or return NULL
--
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 jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In my case the optional type is not a good idea cause the ID which should match to one object have to exist.But I understand my mistake and I like the 'fetchOneInto' method.