Originally posted by Mohen Vijay:
My understanding is, once i get all the entity types, i can get the entities for each entity type. Does that mean iterating through entity types and then calling the home iterface to get all entitties for each entity type ?
If you are using CMR (container-managed relationships) and you have a relationship defined between EntityType and Entity and it is navigable from EntityType to Entity, then EntityType must define an abstract method
which WebLogic's CMR service will implement for you. This would allow you to do the following:
If you aren't using CMR or don't/can't create the necessary one-to-many relationship between the objects, you'll need to either load both sets of beans separately or bypass them with
JDBC.
Also, i read in an article that weblogic-ql does support the query to return resultset.
Well, I looked it up in the
EJB spec before posting, but it's possible I misread it and have misunderstood it for the past couple years, but I've only been using entity beans for a little over a year so anything's possible.