Discussion:
[Middlegen-user] Struts Adapter Types Errors
zousey seyzou
2004-04-15 15:46:09 UTC
Permalink
middlegen\samples\src\sql\airline-oracle.sql;I have tried create the tables
in that sql file on oracle 9i,
and in the middlegen GUI I have choose the field type Integer,but when I hit
middlegen gui generated, the strutst forms that are generated has the wrong
fields, type so it can not compile.: for example
*******************************************************************************
public class ReservationForm extends ActionForm {

private final static SimpleDateFormat FORMAT = new
SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

private java.math.BigDecimal _reservationId = null;
private java.math.BigDecimal _personId = null;
private java.math.BigDecimal _flightId = null;
private java.sql.Timestamp _registrationUtc = null;
private java.lang.String _commentary = null;

*******************************************************************************

THEN it give the following error

*******************************************************************************
webdoclet:
[mkdir] Created dir: C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\build\web-meta
[webdoclet] Generating web.xml.

compile-adapter:
[javac] Compiling 4 source files to C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\build\classes
[javac] C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\build\gen-src\airline\adapter\TranslatorUtil.java:21:
cannot resolve symbol
[javac] symbol : method setPersonId (java.math.BigDecimal)
[javac] location: class airline.interfaces.PersonValue
[javac] personPersistence.setPersonId(personForm.getPersonId());
[javac] ^
[javac] C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\build\gen-src\airline\adapter\TranslatorUtil.java:34:
setPersonId(java.math.BigDecimal) in airline.web.struts.P
ersonForm cannot be applied to (java.lang.Integer)
[javac] personForm.setPersonId(personPersistence.getPersonId());
[javac] ^
[javac] C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\build\gen-src\airline\adapter\TranslatorUtil.java:47:
cannot resolve symbol
[javac] symbol : method setReservationId (java.math.BigDecimal)
[javac] location: class airline.interfaces.ReservationValue
[javac]
reservationPersistence.setReservationId(reservationForm.getReservationId());

_________________________________________________________________
Få alle de nye og sjove ikoner med MSN Messenger http://www.msn.dk/messenger
Loading...