How to create a button that redirects to a created entity (Spring Boot) without knowing its ID because it will not be provided in a Vaadin form?

How to create a button that redirects to a created entity (Spring Boot) without knowing its ID becau
I think about for example findByName but its not best solution
Hibernate has a concept called NaturalIDs which could be interesting for you to archive your goal.
Okay, but I don’t know the ID or the variable associated with the @NaturalId annotation while entering the data (the window above).
I know id and natural id is unique
But you are persisting / creating the entity with this form? Repository::save or saveAndFlush should return the stored Entity with its ID which you can use or am I missing something crucial?
Yes, this code save and getid ? its enough ?
offerRepository.save(new OfferSettings()).getId();
Of course