Discussion:
[Middlegen-user] error with new java.sql.Timestamp(String)
K C Lau
2002-12-02 03:10:07 UTC
Permalink
With Middlegen-2.0-b2-dev CVS on Windows 2000, JBoss 3.0.0 and Sun jdk
1.3.1_04-b02 on my existing Oracle 8.1.7 tables,
I got compilation errors during Compile-web with:

compile-web:
Overriding previous definition of reference to compile.class.path
[javac] Compiling 64 source files to
C:\middlegen-2.0-b2-dev\samples\build\classes
[javac]
C:\middlegen-2.0-b2-dev\samples\build\gen-src\airline\web\struts\DeleteJobHistoryAction.java:59:
cannot resolve symbol
[javac] symbol : constructor Timestamp (java.lang.String)
[javac] location: class java.sql.Timestamp
[javac] java.sql.Timestamp startDate = new
java.sql.Timestamp(getParameter(request, "startDate"));

The case in question is a composite primary key with NUMBER(6) and DATE(7),
failing on the DATE.

Any hints on how to work around this problem?

Thanks,
KC Lau.
Aslak Hellesoy
2002-12-02 09:35:51 UTC
Permalink
-----Original Message-----
Sent: 2. desember 2002 06:05
Subject: [Middlegen-user] error with new java.sql.Timestamp(String)
With Middlegen-2.0-b2-dev CVS on Windows 2000, JBoss 3.0.0 and Sun jdk
1.3.1_04-b02 on my existing Oracle 8.1.7 tables,
Overriding previous definition of reference to compile.class.path
[javac] Compiling 64 source files to
C:\middlegen-2.0-b2-dev\samples\build\classes
[javac]
C:\middlegen-2.0-b2-dev\samples\build\gen-src\airline\web\struts\D
cannot resolve symbol
[javac] symbol : constructor Timestamp (java.lang.String)
[javac] location: class java.sql.Timestamp
[javac] java.sql.Timestamp startDate = new
java.sql.Timestamp(getParameter(request, "startDate"));
The case in question is a composite primary key with NUMBER(6)
and DATE(7),
failing on the DATE.
Any hints on how to work around this problem?
Fix the Struts plugin or don't use it. It's not smart enough to handle all
types yet.

Aslak
Thanks,
KC Lau.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...