JBossCMP only allows relationship between cmp entities managed by JBossCMP. Does the EJB specification allow relationships between CMP and BMP (unidirectional of course).
Also, EJB-QL queries are are limited to only query over CMP entities. Did you know that JBossCMP supports BMP style ejbFind methods, so you can write any query you want. -dain Jason Owens wrote: > Argh. I was missing something! The new documentation! It looks like it > SHOULD work for me (the DynamicQL)... but my question now is: does XDoclet > support these new jboss features? :-) > However - I'm still interested in the whole CMP -> BMP problem. What if I > wasn't using JBoss - or DynamicQL still didn't cut it? What would the > options be (simply don't use CMP??)? > Thanks... > -Jason > > >>As a matter of fact, I did. However - I need to dynamically create >>queries for a filtering/reporting feature, and JBossQL doesn't do that >>(unless I missed something). >>-Jason >> >> >>>Before migrating to BMP, did you check JBoss CMP docs. Because JBoss >>>comes with JBossQL which has additional functionality beyond EJB-QL. >>> >>> >>> >>>Jason Owens wrote: >>> >>> >>>>Hello, >>>> >>>>To get a quick start on my project, I implemented all my entity beans >>>>with CMP (and CMR). However, now that everything's working, I need to >>>>port one of those beans to BMP (since EJB-QL is severely limiting). >>>> >>>>I'm just about through with that, however, when I attempt to deploy >>>>my new bean, JBoss throws a DeploymentException from >>>>JDBCRelationshipRoleMetaData saying my bean is not found! I've got 8 >>>>beans related to this one, and if I have to port each of those as >>>>well... >>>> >>>>My question: is it not possible to mix CMP and BMP beans while using >>>>CMR? Do I have to rewrite ALL my $%^* beans with BMP just to do this >>>>(there're 14 other beans, and I'm on a tight schedule...)? My BMP >>>>simulates the exact behavior of the CMP... I didn't think there'd be >>>>a problem. If I can't use CMR - what can I do (short of rewriting the >>>>related beans)? The spec *seems* to indicate that CMR only works with >>>>CMP. Well - why can't you use unidirectional relationships from the >>>>CMP to a BMP? Seems like it should be possible... >>>>If anyone can help, I'd appreciate it. Thanks. >>>> >>>>FYI - I'm using JBoss3.0, and JDK 1.4 >>>> >>>>The actual error message from JBoss is: >>>> >>>>org.jboss.deployment.DeploymentException: Entity: ScheduledEvent not >>>>found for: org.jboss.metadata.RelationshipRoleMetaData@ea0105 >>>>Thanks >>>>-Jason >>>> >>>>------------------------------------------------------- >>>>Sponsored by: >>>>ThinkGeek at http://www.ThinkGeek.com/ >>>>_______________________________________________ >>>>JBoss-user mailing list >>>>[EMAIL PROTECTED] >>>>https://lists.sourceforge.net/lists/listinfo/jboss-user >>> >>>-- >>>Greg Turner >>> >>>Tiburon Enterprise Systems >>>http://www.tiburon-e-systems.com >>>Box 1171 >>>Tiburon, CA 94920 >>>415-332-3363 >>> >>> >>> >>> >>>------------------------------------------------------- >>>Sponsored by: >>>ThinkGeek at http://www.ThinkGeek.com/ >>>_______________________________________________ >>>JBoss-user mailing list >>>[EMAIL PROTECTED] >>>https://lists.sourceforge.net/lists/listinfo/jboss-user >> >> >> >> >> >>------------------------------------------------------- >>Sponsored by: >>ThinkGeek at http://www.ThinkGeek.com/ >>_______________________________________________ >>JBoss-user mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- xxxxxxxxxxxxxxxxxxxxxxxx Dain Sundstrom Chief Architect JBossCMP JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user