Am I writing this code correctly?
select sbcm_ref.process_legal_entities_buf_record(legal_entities_buf_id value from table legal_entities_buf)
to
DSL.using(connection)
.select(Routines.processLegalEntitiesBufRecord(field(select(LEGAL_ENTITIES_BUF.LEGAL_ENTITIES_BUF_ID)
.from(LEGAL_ENTITIES_BUF)))).fetch();