[Seaside] generating relationships

Sebastian Sastre ssastre at seaswork.com
Thu May 14 13:19:20 UTC 2009


Hi Sergio,
just relate the objects in instance variables. In collections when N and one
when one :)
In a second phase you make convenience methods so they talk each other so they
answer what you need.
Only if the ammount of data is big then you may need to do something else
cheers
sebastian

> -----Mensaje original-----
> De: seaside-bounces at lists.squeakfoundation.org 
> [mailto:seaside-bounces at lists.squeakfoundation.org] En nombre 
> de sergio_101
> Enviado el: Thursday, May 14, 2009 09:50
> Para: Seaside - general discussion
> Asunto: [Seaside] generating relationships
> 
> 
> i just got through with the gemstone tutorial 
> (http://seaside.gemstone.com/tutorial.html 
> ).. a really great tutorial on some of the facets of seaside..
> 
> one question i do have is:
> 
> if i have some objects like:
> 
> artist
> album
> fan
> 
> where an artist has many fans
> an album belongs to an artist
> an artist can have many fans
> a fan can have many artists
> 
> how do i articulate those relationships?
> 
> how would i articulate something like..
> 
> give me a list of all fans of a specified artist..
> give me all albums from this artist..
> 
> thanks!
> 
> ___________
> sergio t. ruiz
> network analyst
> red red design
> 419.281.8483
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list