It returns a collection of entities representing all the rows in your
table. Typically you can use it like this:
Collection coll = personHome.findAll();
Iterator it = coll.iterator();
while (it.hasNext()) {
PersonLocal person = (PersonLocal)it.next();
System.out.println(person.getFirstName() + " " + person.getLastName());
}
Something like that.. This being the person class from the middlegen
samples.
.eivind
On Wed, 24 Sep 2003, Cobble, Tim wrote:
> All,
>
> I am fairly new to Entity EJB's. Please forgive this sophomoric
> question; which is:
>
> What should I expect back from a findAll() method?
>
> When inside MySQL and I type SELECT * FROM 'TABLE'; I get back all of
> the data for all of the rows in the table.
> The findALL() method seems to return me a class scope along with the
> primary key for the class. I.E.
> (peer_review_conversion.TDefectLocalHome:132)
>
> I get this output by cycling through a while loop and doing
> out.print(iter.next().toString()); in a servlet.
> Is this what I am supposed to do? What is really in this collection?
>
> I was hoping it would be a collection of TDefectLocal which has all of
> my getXXX and setXXX methods.
> I have looked at the middle-gen generated GUI and can't for the life of
> me figure out what is going on there. Guess I can't read STRUTS.
>
> Thanks for any clues!
>
> Tim
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user