Proxy annotation alternative for sealed classes #7517
Replies: 1 comment
-
This is not the place to ask question. See #7522, #3767 and #4723 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
i've recently started testing spring-boot 3.2, and within this project, I also wanted to use a sealed class. However, to use it as an entity, the only solution I've found is to annotate it with
@Proxy(lazy=false)
. I was quite happy until I noticed that this annotation is deprecated.Since I couldn't find another solution, I want to ask here if there is one, will be in the future, or if it's possible to continue using the @Proxy annotation.
I've made an small example project. You can start it with the
ProxyDeprecationApplicationTests
class, which starts also the Postgres-database with Testcontainers. If you run it like it is, it starts fine, but without the annotation on the ContactEntity.ContactChannelEntity class, startup fails.Beta Was this translation helpful? Give feedback.
All reactions