Hi,
until recently our client used Oracle DB as a DBMS for their Enterprise Architect instances and our app was consuming the data using entities like this one:
```
@Entity
@DbName("ea")
@Table(name = "T_OBJECT")
data class EaObject(
@Id
@Column(name = "OBJECT_ID", nullable = false)
@GeneratedValue(
strategy = GenerationType.SEQUENCE,
generator = "t_object_sequence_generator",
)
@SequenceGenerator(
name = "t_object_sequence_generator",
sequenceName = "OBJECT_ID_SEQ",
allocationSize = 1,
)
var id: Long = 0,
...
}
```
As you can see, the entity uses sequences to populate the ids. But now the client migrated part of their data into a new MS SQL server instance. The MS SQL Enterprise Architect schema uses identities instead of sequences and as documented in the last section here
https://ebean.io/docs/mapping/jpa/id#generated-value these strategies are actually the default ones for ebean on those platforms, so the first thing we tried to do was just to update the strategy param of the `@GeneratedValue` annotation to `GenerationType.AUTO`. This does indeed choose the sequence strategy in Oracle and identity strategy in MS SQL, the problem is the `@SequenceGenerator` annotation is ignored if the identity strategy is selected, which is good, but the `generator` parameter of the `@GeneratedValue` annotation is not (whereas it is indeed ignored if the `GenerationType.IDENTITY` is used), which results in an "java.lang.IllegalStateException: No custom IdGenerator registered with name t_object_sequence_generator" error on the MS SQL backend, or any other backend for which AUTO chooses the identity strategy.
My question then is, whether this is a bug, or if it's this is intentional and in that case, whether there's something I can do to tell ebean to ignore the `generator` parameter in case of AUTO (on platforms where this leads to identity strategy) as it does when IDENTITY is specified explicitly.