Hi-
I guess when you say a 1--* relationship, it's more better represented when the entities are different tables - House table and Room table (you know, normalization and stuff)
and, technically, when you say a collection-valued relation field - 'room', it's a getter method getRoom() (or more comfortably
getRooms() when your cmr-field is 'rooms') which will return a Collection of
local component interfaces of the Room entity bean (a different table), so that you can iterate thru them. your database might actually have to be modified as
in this case your EJB-QL would look something like -
hope this helps
