M
Mongoose
Hi All,
I'm a beginner with Hibernate and I'm having trouble understanding how
to insert dates into an Oracle database properly. In my Struts
application I have my Defect Class (a portion of which is shown
below). The relevant portion of my Hibernate Defect.hbm.xml is also
shown below. When I fill out my .jsp and submit it . . . I get this
error:
"java.lang.IllegalArgumentException: Cannot
invoke ....Defect.setReportdatetime - argument type mismatch"
I don't understand how to do this. Can someone straighten me out?
Thanks,
Andy
********** Relevant part of Form Bean **************************
public class Defect extends ActionForm
{
//Form Bean For the Defect Entry Screen
private Date reportdatetime;
public Date getReportdatetime()
{
return reportdatetime;
}
public void setReportdatetime(Date reportdatetime)
{
this.reportdatetime = reportdatetime;
}
********** Relevant part of Defect.hbm.xml **************************
<class name="Defect" table="Defect">
<id name="Defectid" type="integer" column="DEFECTID">
<generator class="native"/>
</id>
<property name="Reportdatetime"/>
<property name="Reporteruserid"/>
I'm a beginner with Hibernate and I'm having trouble understanding how
to insert dates into an Oracle database properly. In my Struts
application I have my Defect Class (a portion of which is shown
below). The relevant portion of my Hibernate Defect.hbm.xml is also
shown below. When I fill out my .jsp and submit it . . . I get this
error:
"java.lang.IllegalArgumentException: Cannot
invoke ....Defect.setReportdatetime - argument type mismatch"
I don't understand how to do this. Can someone straighten me out?
Thanks,
Andy
********** Relevant part of Form Bean **************************
public class Defect extends ActionForm
{
//Form Bean For the Defect Entry Screen
private Date reportdatetime;
public Date getReportdatetime()
{
return reportdatetime;
}
public void setReportdatetime(Date reportdatetime)
{
this.reportdatetime = reportdatetime;
}
********** Relevant part of Defect.hbm.xml **************************
<class name="Defect" table="Defect">
<id name="Defectid" type="integer" column="DEFECTID">
<generator class="native"/>
</id>
<property name="Reportdatetime"/>
<property name="Reporteruserid"/>