hmm, i'm actually not very sure wat caused the problem.
okie, i have a form, where user can choose to save or save&submit. If they choose save, they can search for it and then modify&submit later. once the submitted the form, a date will be inserted into the db.
in my backing bean, i have 3 session.save to save my data into my master table, and then to another 2 tables. for the 2 other tables, i'm inserting more than one record, for master record, only inserting one record.
after that, i commit.
ok, now the problem is, for eg. when i do a search , it'll return all the rows that i've created, lets say 3 rows (row1. row2,row3).
let's say each row has data like this:
row 1: (id=1, name=row1, date=null)
row 2: (id=2, name=row2, date=null)
row 3: (id=3, name=row3, date=null)
when i clicked submit, my date only will be inserted. so let's say i choose row 2 and clicked submit, so i can see that now my data :
row 1: (id=1, name=row1, date=null)
row 2: (id=2, name=row2, date=10/14/2005)
row 3: (id=3, name=row3, date=null)
then after that, i choose row 1 to submit, but my data becomes:
row 1: (id=1, name=row1, date=10/14/2005)
row 2: (id=2, name=row2, date=null)
row 3: (id=3, name=row3, date=null)
i'm editing row 1, not touching row 2, but somehow it will update my row 2 and set it into null values. i checked the log file that found that hibernate actually updating my row 2 but in my code, there's NO PLACE that i'm updating row 2.
it's really very difficult to explain, and i hope u understand what i'm trying to say.
i read some articles and from those articles it seems like it's a caching issue, but they did not provide any solutions to this...
kindly advise.