Skip to content

It's possible to change ID Generator on tests? #8840

Discussion options

You must be logged in to vote

@fernandofdzcode It might be possible by messing with the ClassMetadata if you find all the right properties and respect the inheritance hierachy, but this is not an official way and not really recommended. You could always introduce a custom ID Generator that wraps and instantiates different implementations based on Test or Production, that is my best guess on how to get it working.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by beberlei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants