From Oracle to MySql - Part II
From Oracle to MySql - Part II
- Subject: From Oracle to MySql - Part II
- From: "Pierre Gilquin" <email@hidden>
- Date: Tue, 4 Jan 2005 09:50:48 +0100
Hi all,
I have transform an Oracle EOmodel to MySql using switch adaptor. Everything
works fine, the attribute are translated in the MySql types and I am able to
fetch anything in EOmodel.
But it seems that I have problems with sub-classes in applications.
I am able to create an object from a sub classe of Substance (defined by
category = 'CYT') but impossible to read it afterward !
The mysql jdbc driver is mm.mysql-2.0.4-bin.jar
The trace is the following :
...
[2005-01-04 09:09:31 CET] <main> Using JDBCPlugIn
'com.webobjects.jdbcadaptor.MySQLPlugIn' for JDBCAdaptor@12818976
[2005-01-04 09:09:31 CET] <main> connecting with dictionary: {plugin = "";
username = "root"; driver = "org.gjt.mm.mysql.Driver"; password = "<password
deleted for log>"; URL =
"jdbc:mysql://localhost/test?capitalizeTypeNames=true
"; }
[2005-01-04 09:09:32 CET] <main> === Begin Internal Transaction
[2005-01-04 09:09:32 CET] <main> evaluateExpression:
<com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "SELECT t0.AUC,
t0.Cmax, t0.DCI, t0.Q0, t0.TDemi, t0.Vd, t0.id, t0.biodisponibilite,
t0.category, t0.idEMediat, t0.invisible, t0.isomere, t0.VERROU,
t0.metabolite, t0.metaboliteActif, t0.nomLocal, t0.poidsMoleculaire FROM
Substance t0 WHERE t0.category = ?" withBindings: 1:"CYT"(category)>
[2005-01-04 09:09:32 CET] <main> fetch canceled
[2005-01-04 09:09:32 CET] <main> 0 row(s) processed
[2005-01-04 09:09:32 CET] <main> === Commit Internal Transaction
[2005-01-04 09:09:32 CET] <main> === Commit Internal Transaction
[2005-01-04 09:09:32 CET] <main> A fatal exception occurred: null
[2005-01-04 09:09:32 CET] <main>
com.webobjects.jdbcadaptor.JDBCAdaptorException
at com.webobjects.jdbcadaptor.JDBCColumn._fetchValue(JDBCColumn.java:322)
at com.webobjects.jdbcadaptor.JDBCColumn.fetchValue(JDBCColumn.java:304)
at com.webobjects.jdbcadaptor.JDBCChannel.fetchRow(JDBCChannel.java:1395)
at
com.webobjects.eoaccess.EODatabaseChannel._fetchObject(EODatabaseChannel.jav
a:303)
Thank in advance for any help
Pierre.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden