Hello all,
I have a question that probably seems basic, but I really just can't get my brain around it.
I understand that Entity beans represent single records in a database table, or something similar.
Okay so the question is, most of the time when I write a program, there are a couple different tables and a single SQL statement that ties them all together. If I want to say display a record, then I use that SQL to get back a record with all the descriptions and stuff from other related tables.
In the case of EJBs, do I just create a
EJB that represents each Table record structure?
And with that, if I want to make an object that would have a full record with descriptions and all, would I have put it together somewhere?
Basically, can I not do like I did in older apps and just return a complex query into a single record set and work from that?