Hi everybody,
I have to EJB with 1-N CMR field (properly configured with xdoclet).
/**
* @ejb:persistent-field
*
* @ejb:relation name="idLectureQuestion"
* role-name="each-lecture-has-a-lot-of-questions"
* target-ejb="QuestionEntity"
* target-role-name="a-lot-of-questions-belong-to-one-lecture"
* target-multiple="no"
*
* @jboss:target-relation related-pk-field="id"
* fk-column="questions"
*
* @jboss:column-name name="questions"
*/
public abstract Collection getQuestions();
public abstract void setQuestions(Collection questions);
now I tried to add a new Question to this field. So I created a new method in this EJB
file which looks like that
/**
* @ejb:interface-method view-type="remote"
*/
public void addQuestion(QuestionEntity question) {
this.getQuestions().add(question);
}
But it is not working. I have the feeling that the new record is added to the
Collection but it is somehow not written back to the bean.
I remeber that I read something about just working with LocalInterfaces but I can not
find the text again.
What am I missing? Whats the point?
thanks in advance
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836799#3836799
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836799
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user