Hi,
I'm trying to access db Oracle by simple query:
String query = "from it.app.iniziative.Progetto";
where mapping file is
<hibernate-mapping>
<class name="it.app.iniziative.Progetto" table="PROJECTS">
<id name="idPRG" type="int" unsaved-value="null" >
<column name="KCODE" sql-type="number(12)" not- null="true"/>
<generator class="sequence" >
<param name="sequence">S_PROJECT</param>
</generator>
</id>
<property name="replanningQuantity" >
<column name="REPLANNINGQUANTITY" sql-type="number(12)"/>
</property>
<property name="status" sql-type="number(1)>
<column name="STATUS" />
</property>
</class>
</hibernate-mapping>
As the column STATUS has no value in db, in the log appears:
ERROR [http8070-Processor7] - [SYSTEM] Null value was assigned to a property of primitive type setter of it.app.iniziative.Progetto.status
ERROR [http8070-Processor7] - [SYSTEM] No persister for: java.lang.Integer
What can I do? Why doesn't the system find a class persister for Integer?
Thanks,
Anna
|