Stéphane Épardaud
Stéphane Épardaud
Well, no, this is a bug in the router. You're allowed to have parameters in the `@BeanParam` and outside of it.
So you want the DB roles to be injected into the JWT token? Interesting. I think I've a way to do that.
> I wasn't able to build it as, apparently, there are some changes around multipart handling but I think it has nothing to do with the migration process itself. Ah,...
From https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.0#resteasy-reactive: - `org.jboss.resteasy.reactive.server.core.multipart.MultipartFormDataOutput` → `org.jboss.resteasy.reactive.server.multipart.MultipartFormDataOutput` - `org.jboss.resteasy.reactive.server.core.multipart.PartItem` → `org.jboss.resteasy.reactive.server.multipart.PartItem` - `org.jboss.resteasy.reactive.server.core.multipart.FormData.FormValue` → `org.jboss.resteasy.reactive.server.multipart.FormValue`
Given: ```java Foo fooWithChangesAndOldVersion = ...; Foo foo = em.find(Foo.class, 1L); foo.title = fooWithChangesAndOldVersion.title; foo.version = fooWithChangesAndOldVersion.version; em.flush(); ``` It appears that `foo.version = fooWithChangesAndOldVersion.version` differs in behaviour from what...
I can probably make it throw if you attempt to set the version to a different version if the entity is managed. Is it `merge` that throws, or is it...
> I guess ideally I'd throw directly on attempting to write on the field. That should be easy > But while adding such extra checks might avoid some confusion, it...
OK, my intention got lost in translation. Here's what I'm proposing: ```java @Entity public class Foo extends PanacheEntity { @Version public long version; public String title; public String author; }...
Yes, very good idea. We'd just need to do the same as RESTEasy does wrt preconditions and caching.
I'll check it out ASAP.