From: Kal A. <ka...@te...> - 2004-03-29 12:48:53
|
Hi Stefan, Thanks for the overview - do you mind if I cut-n-paste this into the docs section on the TM4J sourceforge site ? One thing though - you don't need to edit the config file by hand - if you start admintool without a config file, you can actually create a new one through the UI. The UI is a bit "unfriendly" at the moment, because if you make a mistake you have to go back and enter all the details again - but it can be done :) Cheers, Kal Stefan Lischke wrote: >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 > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Tm4j-developers mailing list >Tm4...@li... >https://lists.sourceforge.net/lists/listinfo/tm4j-developers > > > > |