Open requizm opened 1 month ago
I'm aware that adding 3rd library to core library does not feel right, it should be done in the top layers. But I coudln't find the right place (except creating a custom converter). Somehow I need to change creator
For an arrangement such as Immutables, typically, the entity refers to the interface. For Spring Data usage, you would need to divert all getPersistentEntity(…)
calls to the actual implementation. Additionally, the generated code (as you've pointed out) doesn't meet Spring Data's conventions.
Immutables has a ton of annotations and built-in extensions. I wonder why there isn't a way for Immutables to generate @PersistenceCreator
on the all-arg constructor.
For the time being, we do not see strong demand while having other items in our backlog that we see much more demand for.
@mp911de Thank you, I can close the issue according to your comment. But you added enhancement
label. Will this be resolved in this repo? Or do we pass the ball to immutables and ask them to create a PersistenceCreator
?
We consider adding support for immutables an enhancement. We just don't have bandwidth to implement that.
Example:
In this code, it can't find constructor because there is a constructor that uses
Builder
as a parameter.I don't want something big like creating constructor using Builder. If the class is auto-generated and the constructor parameter is builder, I want it to ignore it.
I could add
@Value.Style(privateNoargConstructor = true)
annotation to interface, so there would be noArg constructor but that's just workaround. It's not working with transiant types, etc. I prefer first solution if it's okay.