Mapping
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jim_P
Posted On:   Monday, October 17, 2005 03:29 AM

Hi!! can someone please give me solution to this problem........ I have two tables; 1) User, 2) Address with a one-to-many relation (a User can have many addresses). I declared a list in User mapping. But when I call user.getAddressList(), the first element in the list is always null. For example, if I have 5 Address records, when I call user.getAddressList(), I am getting a List of size=5. But the first element in the list is null and the remaining 4 elements are valid records. thx & rgds, Dan.    More>>

Hi!!

can someone please give me solution to this problem........

I have two tables; 1) User, 2) Address with a one-to-many relation
(a User can have many addresses). I declared a list in User mapping.
But when I call user.getAddressList(), the first element in the list
is always null.

For example, if I have 5 Address records, when I call
user.getAddressList(), I am getting a List of size=5. But the first
element in the list is null and the remaining 4 elements are valid
records.

thx & rgds,

Dan.

   <<Less

Re: Mapping

Posted By:   Anonymous  
Posted On:   Tuesday, October 18, 2005 05:07 AM

Can you provide the code that populates the list?
About | Sitemap | Contact