From: didi <nu...@jb...> - 2004-05-29 17:21:54
|
Here is ejb-jar.xml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> <ejb-jar > <![CDATA[No Description.]]> <display-name>Generated by XDoclet</display-name> <enterprise-beans> <!-- Session Beans --> <!-- To add session beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called session-beans.xml that contains the markup for those beans. --> <!-- Entity Beans --> <![CDATA[]]> <display-name>Question Entity Bean</display-name> <ejb-name>QuestionEntity</ejb-name> de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.QuestionEntityHome de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.QuestionEntity <local-home>de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.QuestionEntityLocalHome</local-home> de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.QuestionEntityLocal <ejb-class>de.unimannheim.wifo3.cobana.ejb.prototype.entity.QuestionEntityCMP</ejb-class> <persistence-type>Container</persistence-type> <prim-key-class>de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.QuestionEntityPK</prim-key-class> False <cmp-version>2.x</cmp-version> <abstract-schema-name>QuestionEntity</abstract-schema-name> <cmp-field > <![CDATA[]]> <field-name>id</field-name> </cmp-field> <cmp-field > <![CDATA[]]> <field-name>headline</field-name> </cmp-field> <cmp-field > <![CDATA[]]> <field-name>description</field-name> </cmp-field> <cmp-field > <![CDATA[]]> <field-name>answertype</field-name> </cmp-field> <cmp-field > <![CDATA[]]> <field-name>answers</field-name> </cmp-field> <query-method> <method-name>findAll</method-name> <method-params> </method-params> </query-method> <ejb-ql><![CDATA[SELECT OBJECT(qe) FROM QuestionEntity qe]]></ejb-ql> <query-method> <method-name>findByAttributes</method-name> <method-params> <method-param>java.lang.String</method-param> <method-param>java.lang.String</method-param> <method-param>int</method-param> <method-param>java.lang.Object</method-param> </method-params> </query-method> <ejb-ql><![CDATA[SELECT OBJECT(qe) FROM QuestionEntity qe WHERE qe.headline = ?1 AND qe.description = ?2 AND qe.answertype = ?3]]></ejb-ql> <!-- Write a file named ejb-finders-QuestionEntityBean.xml if you want to define extra finders. --> <![CDATA[]]> <display-name>Lecture Entity Bean</display-name> <ejb-name>LectureEntity</ejb-name> de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.LectureEntityHome de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.LectureEntity <local-home>de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.LectureEntityLocalHome</local-home> de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.LectureEntityLocal <ejb-class>de.unimannheim.wifo3.cobana.ejb.prototype.entity.LectureEntityCMP</ejb-class> <persistence-type>Container</persistence-type> <prim-key-class>de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.LectureEntityPK</prim-key-class> False <cmp-version>2.x</cmp-version> <abstract-schema-name>LectureEntity</abstract-schema-name> <cmp-field > <![CDATA[]]> <field-name>id</field-name> </cmp-field> <cmp-field > <![CDATA[]]> <field-name>headline</field-name> </cmp-field> <cmp-field > <![CDATA[]]> <field-name>description</field-name> </cmp-field> <cmp-field > <![CDATA[]]> <field-name>questions</field-name> </cmp-field> <query-method> <method-name>findAll</method-name> <method-params> </method-params> </query-method> <ejb-ql><![CDATA[SELECT OBJECT(le) FROM LectureEntity le]]></ejb-ql> <query-method> <method-name>findByAttributes</method-name> <method-params> <method-param>java.lang.String</method-param> <method-param>java.lang.String</method-param> <method-param>java.util.Collection</method-param> </method-params> </query-method> <ejb-ql><![CDATA[SELECT OBJECT(le) FROM LectureEntity le WHERE le.headline = ?1 AND le.description = ?2]]></ejb-ql> <!-- Write a file named ejb-finders-LectureEntityBean.xml if you want to define extra finders. --> <!-- To add entity beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called entity-beans.xml that contains the markup for those beans. --> <!-- Message Driven Beans --> <!-- To add message driven beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called message-driven-beans.xml that contains the <message-driven></message-driven> markup for those beans. --> </enterprise-beans> <!-- Relationships --> <ejb-relation > <ejb-relation-name>idLectureQuestion</ejb-relation-name> <ejb-relationship-role > <ejb-relationship-role-name>each-lecture-has-a-lot-of-questions</ejb-relationship-role-name> One <relationship-role-source > <ejb-name>LectureEntity</ejb-name> </relationship-role-source> <cmr-field > <cmr-field-name>questions</cmr-field-name> <cmr-field-type>java.util.Collection</cmr-field-type> </cmr-field> </ejb-relationship-role> <ejb-relationship-role > <ejb-relationship-role-name>a-lot-of-questions-belong-to-one-lecture</ejb-relationship-role-name> Many <relationship-role-source > <ejb-name>QuestionEntity</ejb-name> </relationship-role-source> </ejb-relationship-role> </ejb-relation> <!-- To add relationships for beans not managed by XDoclet, add a file to your XDoclet merge directory called relationships.xml that contains the <ejb-relation></ejb-relation> markups for those beans. --> <!-- Assembly Descriptor --> <assembly-descriptor > <!-- To add additional assembly descriptor info here, add a file to your XDoclet merge directory called assembly-descriptor.xml that contains the <assembly-descriptor></assembly-descriptor> markup. --> <!-- finder permissions --> <!-- transactions --> <container-transaction > <ejb-name>QuestionEntity</ejb-name> <method-name>*</method-name> <trans-attribute>Required</trans-attribute> </container-transaction> <container-transaction > <ejb-name>LectureEntity</ejb-name> <method-name>*</method-name> <trans-attribute>Required</trans-attribute> </container-transaction> <!-- finder transactions --> </assembly-descriptor> </ejb-jar> View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836840#3836840 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836840 |