-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow projects to choose their ID generator #33
Comments
👍 Good point. But in production apps, mostly some migration tool like Flyway would be used anyway. So, I feel like this issue isn't a high priority. |
@naturalprogrammer can't really see how your comment relates to the issue, probably meant to post elsewhere? |
What I meant was, when you use Flyway like libraries (recommended approach) instead of depending on hibernate to generate the DDL, the JPA annotations of the |
Not really. The real problem is the hardcoded Even if using evolution tools to override mappings wasn't a hack, JPA annotations are interpreted by frameworks like spring to e.g. to transparently save or update. It's been a while though so this is not an issue anymore for us. |
Thanks for elaborating. But But I do agree that this could be better patternized, but I had kept quick start and simplicity in mind, while meeting all requirements (like the generic ID above) when designing the API. |
BTW, if it helps: it's possible to override the generation type by supplying a
|
AbstractUser
pretty much bars applications from using their own ID generator, as it extendsLemonEntity
>AbstractPersistable
, with the latter defining the ID member and JPA annotations. It would be much preferable to provide an interface VSAbstractUser
or otherwise not include theid
member definition within it or it's superclasses. In short, users should be able to:The text was updated successfully, but these errors were encountered: