admin管理员组

文章数量:1290978

    @Query(value = "select nextval('{h-schema}cycle_sequence')", nativeQuery = true)
    fun getId(): Long

This code worked for version 6.1.7.Final Hibernate, but after updating to 6.6.4.Final doesn't work. I haven't found any release notes and I don't understand what to replace them with. Is there a solution?

Execute select nextval for sequence via spring-data-jpa (hibernate) and get the next long

本文标签: hibernateWhy hschema not working for jpa native queryStack Overflow