From: Gavin_King/Cirrus%<CI...@ci...> - 2002-08-08 03:57:08
|
>Sorry for the previous direct email - I am actually subscribed to the dev >list, I just keep hitting reply to these things$W%$&) I do the same thing. *So* irritating.... >I run into the "no db2 driver" problem because I use the SchemaGen tool >with System.Properties settings instead of passing in a set of properties, >as I do in production code. So after looking at it, I'd say this is mostly >just me using a somewhat questionable technique. Hmmmm I still think command-line properties should override hibernate.properties. I never used command line properties before so I hadn't sort of run into this. Anyway I changed it last night. P.S. I prefer to embed the SchemaExport in the application, anyway. Its so convenient to be able to have the application export its own database tables. Actually *that* is something to document in the FAQ.... >But to allow for people who use System.properties for configuration, I >would suggest that the entire hibernate.properties file be commented out - >what are the chances that its correct for anyone? I believe this would >clear this up, since the file would no longer over-write prior properties. yeah i could do that as well. |