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:
>
> /*
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
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 sampl
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
On 10/8/07, RoyPorter <[EMAIL PROTECTED]> wrote:
>
> Our model classes have a lastChangedDate which doubles up as the version
> field for the model, and a
Our model classes have a lastChangedDate which doubles up as the version
field for the model, and a trace of when the record was last changed.
When using the appfuse plugin to generate the CRUD code, sample data is
created with incorrect entries in the lastChangedDate fields - i.e. '1'
rather tha