Struts Adapter Types Errors

"zousey seyzou" <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
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



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.