pb00067 wrote:
As I know you cannot avoid this select statement if you want to work with stateful persistent context.
I you just want update entities without reading them first then you can use bulk updates feature on a stateless session.
That's unfortunate. Anyway, the bulk update operations fulfilled my needs. The only problem I had was due to my inheritance classes in this case. Many update statements were generated with invalid column names. To get it working, I had to break my classes inheritance.
Do you think it is actually possible to have some kind of feature that allows us to update entities without fetching data from databse in the future?
Thank you!