@GenericGenerator is used to create the index for that foreign key table 
here:-
"hilo-gen" is name of that genrator 
"hilo" is type of that genrator.

@CollectionId is used to tell about id for that table 
here:
"@Column" tell name of key column.
generator tells which genrator is used.
Type tells the data type of that colunm.