Skip to content
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

Provide a native way to generate the ID from the sequence #1923

Open
mipo256 opened this issue Oct 28, 2024 · 2 comments
Open

Provide a native way to generate the ID from the sequence #1923

mipo256 opened this issue Oct 28, 2024 · 2 comments
Assignees
Labels
type: enhancement A general enhancement

Comments

@mipo256
Copy link
Contributor

mipo256 commented Oct 28, 2024

For now, there is no in-built way of generating the id from the sequence. The as mentioned here by @schauder, there is a way to achieve this via callbacks (one of the examples I believe can be found here)

That is a bit tedious, especially if we have multiple different entities in our persistence context (which is insanely often the case). We need to provide the utilities for ID generation from sequence on the framework side.

Related #842

@mipo256
Copy link
Contributor Author

mipo256 commented Nov 5, 2024

Hey @schauder!
Based on the discussion in this PR: #1922, can we rewrite the implementation in there via callbacks?

@schauder
Copy link
Contributor

schauder commented Nov 5, 2024

That is basically the expectation.

@schauder schauder added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants