wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes How do you map a table to a collection of Entity Beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How do you map a table to a collection of Entity Beans" Watch "How do you map a table to a collection of Entity Beans" New topic
Author

How do you map a table to a collection of Entity Beans

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
So far I have only seen examples of a session bean calling an entity bean that loads one row.
I would like to see examples of how you map an entire table to a collection of Entity beans.
Would you use a session bean that would loop around mapping each entity bean to each row in the table.
Thanks for any help Tony
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Read about "Finder Methods" in any EJB book. That shows how you retrieve a set of Entity beans representing N rows.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
Thanks Kyle for all your help.
Tony
 
 
subject: How do you map a table to a collection of Entity Beans
 
Similar Threads
How "big" are YOUR entity beans?
Number of entity beans
EJB - Sum of a Column
Using Weblogic to cache data at startup
bean binding