how to get the next sequence value in hibernate using named query? -


hi want next value of notificationerrorlog_sequence sequence using hibernate named query,please let me know solution this

@id @sequencegenerator(name = "employee_sequence", sequencename = "employee_seq", allocationsize=1) @generatedvalue(strategy=generationtype.sequence, generator="employee_sequence") @column(name = "id", updatable = false, nullable = false) private long id; 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -