Re: [SQLObject] Re: Impressions so far
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Bud P. B. <bu...@si...> - 2003-06-02 08:21:48
|
Apologies for falling behind the discussion (and it's probably going to get worth starting from tomorrow). Looked at Modeling too and have two impressions: * Looking at other ORMs, I think we can't give enough credit to Ian for having found a way of doing things EASY and intuitive. Some of that stuff looks to complex and verbose that it would be great for Enterprise Java... Thanks, Ian! One really starts to appreciate this more and more when one looks at alternatives (which I haven't done much before..) * Apart from that, I kind of like Modelings simple dot-notation for specifying Where conditions on related objects. Will have to look into this more.. --bud On 30 May 2003 21:48:21 -0500 Ian Bicking <ia...@co...> wrote: > > 14. Modeling (which seems rather hard to get into) seems to have very > > expressive ways to get complex joins. I haven't tried it at all, but > > have browsed the docs. Might be worth stealing some ideas from them. But > > gee, theyReallyLikeLongMethodNames! Or maybe I'm sensitive to them due > > to RSI... > > I've only looked at Modeling a bit. But ouch... those functions and > methods are painful to read, not to mention write. Like: > > from Modeling.FetchSpecification import FetchSpecification > from Modeling.Qualifier import qualifierWithQualifierFormat > > qualifier=qualifierWithQualifierFormat('lastName=="Hugo"') > fetchSpec=FetchSpecification(entityName='Writer', > qualifier=qualifier) > objects=ec.objectsWithFetchSpecification(fetchSpec) > > That's a "simple" fetch. Hurts my head just having that on the page. Oh my: > > aBook.addObjectToBothSidesOfRelationshipWithKey(anAuthor, 'author') /----------------------------------------------------------------- | Bud P. Bruegger, Ph.D. | Sistema (www.sistema.it) | Via U. Bassi, 54 | 58100 Grosseto, Italy | +39-0564-411682 (voice and fax) \----------------------------------------------------------------- |