I've been trying to get the SchemaExport to work, but running the commandline tool is simply impossible for me... It complains about a missing Apache\Files ... Whatever that is.
However, i downloaded the Workshop example to take a look at the Ant way of doing it. And from what it looks like, i have to generate the Test.java class before i can make a SchemaExportTask with the Test.hbm.xml?? This makes no sence, where is the idea of making both of the files, one of them should be sufficient?
I tried to use the Employer example listed on:
http://www.hibernate.org/hib_docs/reference/en/html/example-mappings.html
But it just says the same:
Quote:
D:\PROGRA~1\APACHE~1\RUNWAY~1.0\src>ant topdown.hbm2ddl
Buildfile: build.xml
topdown.hbm2ddl:
[copy] Copying 1 file to D:\PROGRA~1\APACHE~1\RUNWAY~1.0\src\webapp\WEB-INF
\classes
[schemaexport] log4j:WARN No appenders could be found for logger (net.sf.hiberna
te.cfg.Environment).
[schemaexport] log4j:WARN Please initialize the log4j system properly.
BUILD FAILED
D:\PROGRA~1\APACHE~1\RUNWAY~1.0\src\build.xml:114: Schema text failed: persisten
t class not found: Employer
Total time: 2 seconds
D:\PROGRA~1\APACHE~1\RUNWAY~1.0\src>
Any help on this?