I would like to know if there is a way to define sequence generator java side. Generally we have sequence generators defined in database and we map them to entities using
@SequenceGenerator(name = "generator", sequenceName = "SEQ_FOO_ID"). But is there any way that hibernate itself generates the values instead of using sequence generators from database?
Thanks!