I'd like to use @GeneratedValue(strategy = GenerationType.SEQUENCE, ... ...
when I'm extending the class AbstractPersistable
, but I do not know if that's possible.
From what I saw in the documentation, the class AbstractPersistable
has the Id
attribute with the @GeneratedValue
annotation but does not tell you which strategy the @GeneratedValue
annotation is used to create the sequence used by the Spring framework.
How do I use GenerationType.SEQUENCE
specifically extending the AbstractPersistable
class to have greater productivity?