From: Gavin_King/Cirrus%<CI...@ci...> - 2002-03-04 04:20:20
|
If this helps, I just added functionality to HiLoGenerator to let it instantiate its own DriverManagerConnectionProvider. This still won't let you use an application server datasource, but it will help you at least temporarily in the other situation. You can configure it like this: <generator class="hilo.long"> <param>oracle.jdbc.driver.OracleDriver</param> <param>jdbc:oracle:thin:@localhost:1521:test</param> <param>user</param> <param>pass</param> <param>tablename</param> <param>columname</param> </generator> Or simply: <generator class="hilo.long"> <param>oracle.jdbc.driver.OracleDriver</param> <param>jdbc:oracle:thin:@localhost:1521:test</param> <param>user</param> <param>pass</param> </generator> You need updates to the following files (from CVS) cirrus.hibernate.id.HiLoGenerator cirrus.hibernate.id.HiLoStringGenerator cirrus.hibernate.map.RootClass I hope this helps. peace Gavin |