You are right, if there is simpler way to do things use that. The other way just creates unnecessary finders.
Thanks, Markus > -----Original Message----- > From: Aslak Helles�y [mailto:[EMAIL PROTECTED]] > Sent: den 3 september 2002 15:06 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [Middlegen-user] findBy<relation> > > I removed the generation of these finders completely because they provide > the same functionality as CMR fields. > Example: > > Reservation.findByPerson(person) <==> Person.getReservations() > > -So if you have a person and want the reservations, you could (before I > removed it) use the findByPerson() or the getReservations() methods. 2 > ways > to do the same thing is confusing. > > I didn't discuss this with anyone before, so feedback is welcome! > > Aslak > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of > > [EMAIL PROTECTED] > > Sent: 3. september 2002 14:49 > > To: [EMAIL PROTECTED] > > Subject: [Middlegen-user] findBy<relation> > > > > > > Hello, > > > > using the latest CVS version I don't get @ejb.finders for related beans. > > Using a release from august I got for example in the sample > > ReservationBean: > > > > * @ejb.finder > > * signature="java.util.Collection > > findByPerson(airline.interfaces.PersonLocal person)" > > * result-type-mapping="Local" > > * method-intf="LocalHome" > > * query="SELECT DISTINCT OBJECT(o) FROM Reservation o WHERE o.person > = > > ?1" > > > > Is there a way to use predicates in the current release to > > generate these or > > some other way? > > > > Markus > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: OSDN - Tired of that same old > > cell phone? Get a new here for FREE! > > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > > _______________________________________________ > > middlegen-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/middlegen-user ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user
