Can you enter an issue for this in JIRA? It sounds like the version
annotation is overriding the Data type. Does the issue only happen in
sample-data.xml or does it happen other places as well?

Matt

On 10/9/07, RoyPorter <[EMAIL PROTECTED]> wrote:
>
> This is an excerpt from the model:
>
>     /**
>      * Date/time record was last changed
>      */
>     private Date lastChanged;
>
>     /**
>      * Returns the property last Changed.
>      * @return the lastChanged date
>      */
>     @Version
>     @Temporal (value = TemporalType.TIMESTAMP)
>     public Date getLastChanged() {
>         return lastChanged;
>     }
>
>
>
> John Coleman-5 wrote:
> >
> > What does the Hibernate mapping/annotation look like?  I could see
> > you having a problem if you tagged the attribute with a version tag.
> >
> > Coleman
> >
> >
> > On Oct 8, 2007, at 7:09 PM, Matt Raible wrote:
> >
> >> Is this a java.util.Date or a number? If it's a java.util.Date, it
> >> should generate the correct sample data. If it doesn't, that's a bug.
> >>
> >> Matt
> >>
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/CRUD-generation-for-models-with-non-numeric-version-fields-tf4590981s2369.html#a13111049
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to