I tried declaring an arraylist and tried to populate the data from education[] from profile object.
Could someone give me some tip on retrieving the same.
Thanks in advance,
Ananth
Adam Schaible
Ranch Hand
Joined: Oct 04, 2007
Posts: 101
posted
0
You need to provide more detail before anyone can understand your question. Give us some information on how the data is related, what code you created to retrieve, what "didn't work" about it, etc - then you'll probably get some good responses.
Ananth Ram
Ranch Hand
Joined: Jan 18, 2001
Posts: 99
posted
0
public Profile getProfile(String userName) { Profile profile = new Profile(); School[] school = null; Experience[] experience = null;
I am able to have profile loaded with school[] and experience[] data. I need to get only school[] from profile.
Please advise.
Thanks, Ananth
Adam Schaible
Ranch Hand
Joined: Oct 04, 2007
Posts: 101
posted
0
So according to the following:
there is a method on Profile that returns the schools for a given personId - judging by this code, it looks like you have a reference to person, or something does - I'd find that reference, and then run the code listed above.
Ananth Ram
Ranch Hand
Joined: Jan 18, 2001
Posts: 99
posted
0
Thanks a lot, got it.
Ananth Ram
Ranch Hand
Joined: Jan 18, 2001
Posts: 99
posted
0
Yes, I tried but still I am not able to get the schoolname from School.
The following classes are created.
public Profile getProfile(String userName) { Profile profile = new Profile(); School[] school = null;