Hi,
We are migrating existing project.
I came across the problem I have beans
with primitive type. When the corresponding persistent value in database is
null. The whole application fails. Gives the error that null cannot be assigned
to primitive values
I totally agree with this
behaviour.
So I am changing my whole primitives to
wrapper classes.(ie float -> Float , char -> Character). Or is there any
cheeze way to bypass this.
Am I doing this right Your reply would be highly appreciated.
Please suggest.
regards
prasad
chandrasekaran.
|
- Re: [Hibernate] Primitive types and null Prasad Iyer
- Re: [Hibernate] Primitive types and null Gavin King