I’m trying to set a value in my object inside the transaction, because it would be nice to have it in 1 place instead of making it a method parameter in multiple methods.
I tried using filter, but I think it’s not exactly what I’m looking for.
Here’s an example of what I’m trying to do:
//begin transaction here
EntityManager.unwrap(Session.class).//set myField = "some value"
Could anyone, please, point me how to do this or where should I read about how it should be done?