From: <phr...@im...> - 2002-08-20 17:39:58
|
hi, On Tue, 20 Aug 2002 17:09:23 +0200, "Christoph Sturm" <ch...@mc...> said: > ----- Original Message ----- > From: <Gavin_King/Cirrus%CI...@ci...> > > > This would be very cool. How do you propose to implement it? Diffing = two > > "create table" statements? Diffing two mapping documents? Diffing aga= inst > > JDBC metadata? >=20 > I was thinking about diffing against jdbc metadata. What I had in mind = was > an automatic check of the database metadata when hibernate starts up, a= nd > automatic execution of ddf statements that add missing columns and tabl= es. even this poses some problems, eg. when you're trying to add a NOT NULL column... also, renaming a column would not be recognized... so i think the closest you can get is a schema comparison, and a default alter script, which you have to tweak manually. still comes handy though, but has not much to do with hibernate itself i guess :) viktor --=20 =20 phr...@im... --=20 http://fastmail.fm Quick as a click |