一个kodo的JDO问题,请指教,急,在线等待....

Becky_hy
03-10-06 1 174

我用的是mysql数据库。然后用kodo的jdo中的rd-schemagen -file testschema.xml生成一个xml的schema文件,然后应该用rd-reversemappingtool -package reversetutorial testschema.xml来生成一些java和class文件以及schema,mapping和jdo文件,但是做到这一步就出错了。我把我的操作贴出来,情各位高手帮忙,谢谢!

D:\j2eebin\kodo-jdo-2.4.3\bin>rd-schemagen -file testschema.xml
0 INFO [main] jdbc.SQL - [C: 26392982; T: 30817849]open: jdbc:mysql://local
host/test (root)
111 INFO [main] jdbc.SQL - [C: 26392982; T: 30817849]close
161 INFO [main] jdbc.SQL - [C: 22052786; T: 30817849]open: jdbc:mysql://local
host/test (root)
181 INFO [main] jdbc.SQL - [C: 22052786; T: 30817849]close
211 INFO [main] jdbc.SQL - [C: 18262862; T: 30817849]open: jdbc:mysql://local
host/test (root)
251 INFO [main] jdbc.Schema - Found existing table "test" for schema "null".
291 INFO [main] jdbc.SQL - [C: 18262862; T: 30817849]close
311 INFO [main] jdbc.SQL - [C: 20233936; T: 30817849]open: jdbc:mysql://local
host/test (root)
321 INFO [main] jdbc.SQL - [C: 20233936; T: 30817849]close
341 INFO [main] jdbc.SQL - [C: 31149935; T: 30817849]open: jdbc:mysql://local
host/test (root)
351 INFO [main] jdbc.SQL - [C: 31149935; T: 30817849]close

D:\j2eebin\kodo-jdo-2.4.3\bin>rd-reversemappingtool -package reversetutorial tes
tschema.xml
0 INFO [main] jdbc.SQL - [C: 31406333; T: 1484678]open: jdbc:mysql://localh
ost/test (root)
110 INFO [main] jdbc.SQL - [C: 31406333; T: 1484678]close
150 INFO [main] jdbc.SQL - [C: 20918341; T: 1484678]open: jdbc:mysql://localh
ost/test (root)
170 INFO [main] jdbc.SQL - [C: 20918341; T: 1484678]close
200 INFO [main] jdbc.Schema - Parsing metadata resource "file:/D:/j2eebin/kod
o-jdo-2.4.3/bin/testschema.xml".
1011 WARN [main] kodo.MetaData - Table "test" could not be reverse mapped.

绿化树
2003-10-10 17:51

不懂啊