Re: Searching OO Associations with RDBMS Persistence Models
- From: frebe73@xxxxxxxxx
- Date: 3 May 2006 10:19:11 -0700
Hi,
as the lack of replies indicates, there are no good solution for your
problem. OOA/D does not provide any tools for non-trivial searches like
your. Using OOA/D, the standard solution would be to create a
findByNameStartingWithAndByLocation()-method in the Company class. The
implementation of the find-method would use SQL.
Many OO evangelists claim that searches are not needed in well design
OO applications. You have to redesign your application to avoid the
scenario above. Obviously reporting, etc, should not be done using
OOA/D.
Fredrik Bertilsson
http://moonbird.sourceforge.net
.
- Follow-Ups:
- Re: Searching OO Associations with RDBMS Persistence Models
- From: Robert Martin
- Re: Searching OO Associations with RDBMS Persistence Models
- From: Bart Wakker
- Re: Searching OO Associations with RDBMS Persistence Models
- References:
- Prev by Date: Re: Question on LSP
- Next by Date: Re: Searching OO Associations with RDBMS Persistence Models
- Previous by thread: Searching OO Associations with RDBMS Persistence Models
- Next by thread: Re: Searching OO Associations with RDBMS Persistence Models
- Index(es):