Hello,

I have a question concerning the ejbSelect methods.
Suppose you have an CMP entity beans with a cmp field "price"
that has the primitive datatyp double. An ejbSelect method
should return all prices as a collection:

public abstract
Collection ejbSelectAllPrices() throws FinderException;

and the corresponding EJB-QL query:

SELECT p.price FROM product AS p

My question is: can I expect that a collection of Double objects
is returned? Does the container know how to handle this and can
derive Double from the type double?

The EJB specification does not specifiy what or how to do it. I
think this should be clarified.

I have tested it with JBoss 3.0 and Weblogic. Both do this
conversion and return Double objects. Orion and Oc4J seem not
handle either ejbSelects or home methods.

Best regards, Martin.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to