There is a fundamental mismatch between representing data in an object and relational form. Written in Kotlin with static imports it looks nearly perfect which means that there is no technical stuff around, but only the key information that are required to understand the query:. I think you're looking at a Spring Purist perspective ; which is fine but in real world I don't see anyone trying to avoid Spring dependency. Can someone help by replying and suggesting what should be done if one needs to throw a Txn req exception while doing a persist on an entitymanager? I'd rather not add a property for this, it feel like something that's more a fundamental part of your program rather than something you might want to configure differently at runtime.
nest...