ok,
lets say we have a team and player entities.

use a session bean that preforms a lookup for team's  and player's home.

you can add to the session bean:
after you create a new player

public void addPlayer(String  player_name ,String team){

Player player = PlayerHome.create(player_name);

Team team = home.findByName(team);
 
team.add(player);


} 

while in the Team entity the add() will be implemented as:

public add(Player player){
Collection players =  getPlayers();
players.add(player);
}

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848470#3848470

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848470


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to