A
Alessandro
Hi all,
I have a problem with Hibernate: I need to call cyclically every xx minutes
an update of a record searched by primary key in a table (so only one
record) and with ONLY SOME updated fields.
Every time the table-field-mapping bean is created, I set only fields to be
updated, the other ones remains at "null" or with the initial value defined
in the bean constructor.
Result: updated correctly updates the record but fields not inside update
lose the last value and they get the initial one or null.
Poor solution: before update, call a select of the record and load all db
fields into bean
Other ideas ??
Many thanks for any help,
Best Regards
Alessandro
I have a problem with Hibernate: I need to call cyclically every xx minutes
an update of a record searched by primary key in a table (so only one
record) and with ONLY SOME updated fields.
Every time the table-field-mapping bean is created, I set only fields to be
updated, the other ones remains at "null" or with the initial value defined
in the bean constructor.
Result: updated correctly updates the record but fields not inside update
lose the last value and they get the initial one or null.
Poor solution: before update, call a select of the record and load all db
fields into bean
Other ideas ??
Many thanks for any help,
Best Regards
Alessandro