From: Stefan L. <li...@no...> - 2004-03-29 12:04:16
|
hi, I just wanna share my experiences with working with hibernate and the admintool. First i had to create the shema, therefor i copied admintool skript and replaced the admintool class with org.tm4j.topicmap.hibernate.InstallDB and started it with the commandline options from 0.8.3 docs. !!attention with windows, the subdir hibernate is not inlcuded in classpath!! I would include those install scripts with the distribution after that i made my way through the org.tm4j.admintool.configuration.TM4JConfigurationReader.java to check what a config file should look like. The documentation doesn't help very much, but i figured it out. So maybe a standard configFile should be include in distr. or in the documentation. Here is my standard config file: <?xml version="1.0" ?> <provider xmlns="http://tm4j.org/configuration/1.0/" name="hibernateSQL" factory="org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl"> <provider-properties> <property name="hibernate.connection.url" value="jdbc:mysql://localhost/tm4j"/> <property name="hibernate.connection.username" value="tm4j"/> <property name="hibernate.connection.password" value="tm4j"/> <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/> <property name="hibernate.dialect" value="net.sf.hibernate.dialect.MySQLDialect"/> </provider-properties> </provider> !!Attention the admintool.bat file does not include hibernate subdir, so please add!! for %%i in ("%TM4J_HOME%\lib\hibernate\*.jar") do call "%TM4J_HOME%\bin\lcp.bat" %%i stefan |