If you are getting error hibernate sequence while running the spring application fetching records from table.
The problem with hibernate is if there is an update with table structure the generation GenerationType.AUTO
in hibernate will look for the default hibernate_sequence
table and will throw error , so change generation to IDENTITY
as below :
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;