Given the following example:
@Id @GeneratedValue(strategy = GenerationType.TABLE, generator = "gen2") @TableGenerator(name = "gen2", table = "Gen_table", pkColumnValue = "generator") Long id;
When we create the counter name we ignore the table attribute. This means that the name may conflict with other generators having the same pkColumnValue but different table.