I am new to hibernate. What I am trying to do is use @CollectionIdto generate an identifier for my Address class. I have used Collection interface for
@CollectionId
Collection
You must choose from one of the Hi/Lo strategy :
To be as close as your tutorial as possible, I would simply change "hilo" to "seqhilo" in your code.