cancel
Showing results for 
Search instead for 
Did you mean: 

Entity bean update issue - Problem with number fields

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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