Is there any way to increment a key based on column rather than a row. i.e.:
ColA , ColB, ColC A , 1 , text3 B , 1 , text12 A , 2 , any text55 A , 3 , any text4 B , 2 , any text55 When ColA contains same value then ColB value is incremented. Is there any way to do it via JPA or Hibernate rather than doing query of Max ?