Lets say I have the following:

Person           Relationship         Person
-----------           -------------             ------------
name             destination  --->    relation
relation  <---> source                 name
                      type              


So the idea for this is so that I can have:

Person a = new Person();
a.setName("John Adams");

Person b = new Person();
b.setName("John Quincy Adams");

Relationship r = new Relationship();
r.setSource(a);
r.setDestination(b);
r.setType("Father");

So that's the idea, now in a web based mindset, in order to work with this I 
need a finder so I can search for a record of the person, once I make my 
selection person will be outjected as "person".  

@Name(value="findPersonByName")
public class FindPersonByName {
   @DataModelSelection
   private Person person;
    
   @DataModel
   private List persons();

}

So as I am editing, I have a drop down lookup, to look for people to relate to 
my active person ("person") that I am editing.  That means I want to use 
another object of findPersonByName but this time outject to lookupPerson 
instead of person.  The problem is I don't want to violate the DRY principal on 
this and create another class.  Is there is a solution to this?



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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to