79595129

Date: 2025-04-27 14:32:45
Score: 0.5
Natty:
Report link

The solution is to move the @SequenceGenerator to the class.

@SequenceGenerator(name = "entity_generator", sequenceName = "descendant_one_id_seq", allocationSize = 1)
public class DescendantOne extends AbstractDatabaseEntity {
    @Version
    private Integer version;
    private String name;
}
Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @SequenceGenerator
  • Self-answer (0.5):
Posted by: Timothy Vogel