Hi!

The findAll() in the (local) home interface returns all entity beans remote or
local interfaces in a Collection. From them you can use the getters to get the
data. 

So, using your MySQL analogy, you don't get the actual data with findAll(), but
a Collection of references to objects (rows) containing the data. Sort of. 



> 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

Reply via email to