While looking at some the executeSelectQuery() method in JpaCmpEngine, I noticed a couple of todo items that I think I'd be willing to tackle. I do have a couple of questions about how things work just to make sure I'm understanding things properly.

The first todo is to wrap the result list in a wrapper List can can do a lazy activation of EntityBean result objects. Am I correct in assuming that all of the objects in the list will be of the same type? In other words, if the first result in the list is an EntityBean, then all of the results are EntityBeans and the list should be wrappered. Conversely, if the first item is NOT an EntityBean, then can I assume that the result list can be immediately returned?

The second todo item states "don't activate beans already activated". How would one detect that situation to bypass the second activation?

Rick

Reply via email to