sql语句:select (nextval for document_id) from SYSIBM.SYSDUMMY1用hibernate或jpa怎样得到?
hibernate可以支持原生的sql,就用你这句就可以了。