From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-31 15:59:39
|
....back.... sorry, didn't mean to sound so hostile to suggestions in the last mail... I kinda got pulled away 1/2way through typing it up..... Anyhow, I don't think either of those features would be hard to implement but I would need to see a *very* good justification for the extra APIs needed for "query by specification". Note that either could be *very* easily implemented as an add-on to Hibernate (ie. no change to internal code) if they first generated a Hibernate query string which was then executed using existing functionality. Of course, this is a kind of double-compilation that has some performance implications. (In reality, I don't think you would notice much because Hibernate caches compiled queries). I *do* think "query by example" is pretty cool - but could you tell me how they distinguish a null value from an unset property ... or a zero primitive value from an unset property? I never figured that out... thoughts? |