Rick,
I should have posted that I had located my problem. For some reason, the
ejx GUI program was not putting what I thought it was into my JAWS.XML file.
The ejx program has this nasty habit of changing your setting when you
simply click on a drop down list to see its values. I think this is what
happened.
Once I edited it JAWS.XML directly, the problem was solved.
Thnaks for getting back with me.
Bill Pfeiffer
Arbitration Forums, Inc
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Rickard �berg
Sent: Saturday, June 24, 2000 9:36 AM
To: jBoss
Subject: Re: [jBoss-User] Orace datatype mappings
Hi!
Bill Pfeiffer wrote:
> I am trying to map my oracle datatype (NUMBER) to something that will work
> within the JAWS module. I keep getting type mismatch errors when trying
to
> my create methods on my entity bean: Thus far I have tried:
>
> JAWS SQL Type: NUMBER
> JAWS JDBC Type: DOUBLE
> JAWS Java Type: DOUBLE
> My EB's PK type: double
>
> JAWS SQL Type: NUMBER
> JAWS JDBC Type: Double
> JAWS Java Type: Double
> My EB's PK type: Double
>
> JAWS SQL Type: NUMBER
> JAWS JDBC Type: Double
> JAWS Java Type: Double
> My EB's PK type: int
>
> JAWS SQL Type: NUMBER
> JAWS JDBC Type: Integer
> JAWS Java Type: Integer
> My EB's PK type: int
>
> None of the above mappings work. The first config listed above yeilds a
> class cast exception. The rest give a vague exception about a field
> mismatch.
>
> I wrote a small program that will yeild the SQL and Database datatypes and
> the SQL type IS NUMBER, the JDBC type is Double (java.sql.Type=8). The
> return java object type is Double. What is up with this? I have mapped
> every conceivable way to make the thing Double.
>
> In reality the column is an abstract key generated from an Oracle sequence
> that will always be a positive integer of Oracle type Number. Nothing
> unusual here.
Not sure what could be causing this. Have you looked at the source code?
That could perhaps give some insight into what is the problem (source is
in /src).
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]