| From | Sent On | Attachments |
|---|---|---|
| shipeng (JIRA) | Jul 29, 2008 7:32 am |
| Subject: | [appfuse-issues] [JIRA] Created: (APF-1085) The sample data generation can't work for BigDecimal | |
|---|---|---|
| From: | shipeng (JIRA) (iss...@appfuse.dev.java.net) | |
| Date: | Jul 29, 2008 7:32:34 am | |
| List: | net.java.dev.appfuse.issues | |
The sample data generation can't work for BigDecimal
----------------------------------------------------
Key: APF-1085 URL: http://issues.appfuse.org/browse/APF-1085 Project: AppFuse Issue Type: Bug Components: Tools - AppGen Affects Versions: 2.0.2 Environment: Windows XP, MSSql server 2000, JSF + JPA/Hibernate Reporter: shipeng Assignee: Matt Raible
When use Appfuse:gen to generate the JSF pages and test datas, there are errors
for BigDecimal datas.
The sample Data generate String for BigDecimal as input.
Maybe I think there is a bug for this function in sample-data.ftl ${data.getTestValueForDbUnit(column)}
It generate a string for BigDecimal as input.
And also the function in list-test.ftl ${data.getValueForJavaTest(column)}
e.g private BigDecimal chcb; @Column(name = "chcb", precision = 18, scale =2) public BigDecimal getChcb() { return this.chcb; }
public void setChcb( BigDecimal chcb ) { this.chcb = chcb; }
The generated data in sample-data.xml
<value
description="chcb">KpScOgMiGzQgPjDdVnHjLxSqDmKvQgSrFjFmSjHnBrCoWwSyAeYwMuGpPpSdRdScIdEhAvIkGjLwGzDaUqJuGrIaTmTuNmAaEfMhPsMcNmNcHtWvBaPmWfYcEbJuRqCjHuKzDhHpOkIyTvPuIfRjOuFfHtRgRhXiUmWpKxIjGnXwRgJdKnQiZgAsNkCvAmCgIoDmSwIjZcKpKiWqFuQaCwEwWfReNsRtDwQpXpFyJkOnBbIwHrOpCtMzQeNnThT</value>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira





