I'm currently trying to get a finder like this to work, in a bean called
ChapterBean:
<query>
<query-method>
<method-name>findByCourse</method-name>
<method-params>
<method-param>com.lektor.core.Course</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[ WHERE course = ?1]]>
</ejb-ql>
</query>
weblogic.ejbc gives me a big nice exception, ASSERTION FAILED - Didn't
handle a potential SQL type case.
The field course is defined as a cmp-field. If I define a bidirectional
relation with cmr-fields, it compiles. Now, I don't really want to do
that, because Course has a list of (ordered) chapters (not a simple
Collection or Set).
This leads to three questions:
- does EJB QL work with remote interface cmp-fields? Somewhere in the
spec. I get the impression it might not if the beans are partners in
jar, and could use relations.
- if I have to define relations for all my beans, meaning I have to
give up on using Lists, how to keep that relation ordered? (I can of
course put a field "position" in Chapter and make it Comparable, but
it's a bit awkard.)
- or is this a weblogic specific question, which should be asked
elsewhere?
________________________________________________________
H å k a n R å b e r g - [EMAIL PROTECTED]
Lecando AB, Voltavägen 2 4, SE-168 69 Bromma, Sweden
===========================================================================
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".