on 02-29-2008 1:27 PM
Hi,
We have one DB table as below
TABLE NAME - user_info
COLUMNS - user, name, age, height
*height is a number(20) field and can be NULL.
We have one update operation which does the update through entity bean. *This update operation updates all the columns except height.
After an update, expected behavior is, value in height field should remain as it is. It works fine if the height column has a not null value. *In case it has null value, update makes it zero.
While debugging we found that entity bean local object has height value as zero in case it's NULL in DB.
Any idea on how this can be fixed?
Points will be awarded for helpful answers
Regards
Chandra
Got the solution for this. Looks like there is a bug with entiry bean CMP implementation. Putting appropriate code in ejbLoad() method solved the problem.
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.