| This is trivial to implement if the following naming strategy only prefixes the name with an additional $: https://github.com/hibernate/hibernate-orm/blob/ba3359fe62be258638554fe23a2a0a6a50f7e732/hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/BasicProxyFactoryImpl.java#L55 Similarly, this should be done in other proxy generators. At the same time, I find the general approach flakey. Cglib does not necessarily generate proxies and alternative languages like Kotlin or Scala use the $$ pattern for all of their functional expressions. It might be worth changing the name back to restore compatibility but I think that checking for "$Hibernate" would be more reliable. |