On Sat, Aug 16, 2008 at 10:28 AM, Dominic Watson wrote: [...] > A question for anyone who knows hibernate then; does it require > configuration per database, rely on convention or does it query the > schema to generate its mappings automatically?
You can do it however you want it, man! It'll reverse-engineer your database and create mapping files, as well as Plain Old Java Objects for you to wank on, OR You can just give it your model, and it will create the database for it, as well as try to keep the database schema updated as you change your model (it's only so intelligent, but for the little stuff, what a time saver!), OR you can do everything with the HBM mapping files themselves (they sorta become your model, I reckon), and it'll create java objects, while keep the database in sync. It is configured by database, pretty much, although you can really customize crap, and use various connections or whatever, actually. Enough flexibility to kill a cat. Seriously, it would take years to build all this stuff yourself-- it's pretty robust. Custom SQL, named queries, wicked ways of querying things by object... You can use various other libraries to add clustered caching, searching, and all kinds of crazy stuff. Did I mention a really nice Eclipse-based Hibernate IDE with autocomplete, and whatnot? I've actually got most of these bits working with CF components. Even went so far as to create annotations, so you can handle the object relationships and whatnot right there in your CFC. Reverse-engineering the DB to create CFCs. Parsing the HBM files to create CFCs. Basically the same type of stuff you can do with hibernate, with a bit of validation thrown in, since the (meta?)data was there... Nothing final, it's just past prototype, actually, but it seems pretty cool. Just writing unit tests and whatnot and trying to coheese it all together, currently. If there's something built-in to 9, it will be promising, no matter how much they implement. -- He was a rake among scholars, and a scholar among rakes. Thomas B. Macaulay ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311127 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

