Using Hibernate 3.0.5 and JDK 1.4.2.
I'm new to Hibernate. I haven't gotten into the refdoc yet.
I have an Oracle table with two columns that are defined as NUMBER, but they are nullable, and one or more of them will often be null. If I do a straightforward mapping, it would be to an "int" property, but that won't work, as I need to know if the value is null or not.
Can I map the NUMBER columns to String properties? If the column value is null, then the String value will be null, correct? Is this the best strategy to map this table?
|