Report question

Question: get next sequence value from database using hibernate