Hi Jason,

You have uncovered a fault in the SQL-OS.

Please can you create a JIRA ticket and assign to me?

"SQL-OS java.util.Date value not correctly detected" or something.

I thought that I had an assignment into java.util.Date in my tests... ah 
well.

Regards,
Kevin


On 9 May 2012 at 20:17, Dan Haywood wrote:

> Hmm, Kevin's the expert on this, but as a workaround, if you convert to
> using the applib Datetime in your POJO rather than a java.util.Date, then
> maybe that would work?
> 
> Dan
> 
> 
> On 9 May 2012 19:49, Richardson, Jason - FSA, Kansas City, MO <
> [email protected]> wrote:
> 
> > Using today,  I got this exception.
> >
> > java.util.Date cannot be cast to org.apache.isis.applib.value.DateTime
> > java.lang.ClassCastException: java.util.Date cannot be cast to
> > org.apache.isis.applib.value.DateTime
> >        at
> > org.apache.isis.runtimes.dflt.objectstores.sql.jdbc.JdbcDateTimeMapper.preparedStatementObject(JdbcDateTimeMapper.java:51)
> >        at
> > org.apache.isis.runtimes.dflt.objectstores.sql.jdbc.AbstractJdbcFieldMapping.appendInsertValues(AbstractJdbcFieldMapping.java:59)

> >
> > On 9 May 2012 at 16:34, Richardson, Jason - FSA, Kans wrote:
> >
> > > I have a domain object that has a java.util.Date.
> > > When running my app, I can't get a date to be accepted.  I have tried
> > multiple date formats.  And I even put in a property.
> > > isis.value.format.date=dd/MM/yyyy
> > >
> > > My DOM has this for the code:
> > > It's a java.util.Date.
> > >
> > >
> > >         private Date shiftDate;
> > >
> > >         @MemberOrder(sequence = "1")
> > >         public Date getShiftDate() {
> > >                 return shiftDate;
> > >         }
> > >
> > >         public void setShiftDate(Date shiftDate) {
> > >                 this.shiftDate = shiftDate;
> > >         }
> > >
> > >
> > > Example return on my webpage:
> > > * Not recognised as a date: 05/09/2012
> > >
> > >
> > > Jason Richardson

Reply via email to