see a thread "composites" started by me on 21.08.2008 - i have something named composer for such "embedded structures" but i have not yet moved further into how to make that one a Comparable in terms of query.filter(). u can try do it...
On Monday 13 October 2008 18:14:42 g00fy wrote: > I have my table Warehouse collumns like: > id, owner_id .... , area_total, area_office ... ,area_storage > I would like to have acces to all areas by Warehouse.area.property: > example: > Warehouse.area.storage > > I did composite(), but now I can't filter like: > filter(Warehouse.area.total >=100) and even not by > fitler(Warehouse.area_total >=100) > > but i can access > Warehouse.area.total > > I don't want to create aditional Area table, becouse that will > create expensive joins. > > Is there any way to connect a group of fields to another "virtual" > relation? > > ps. I tried has() and any() like with normal FKey. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---