cancel
Showing results for 
Search instead for 
Did you mean: 

get user address details

Former Member
0 Kudos

in hybris 5.7 : I have a register user with address in his address book (in my account). In some Populator I'm trying to retrieve this address like this :

final UserModel um = defaultUserService.getUserForUID(orderModel.getUserId()); final Collection col = um.getAddresses();

I'm getting the UserModel and the Addresses , and in the Collection there is one address record - not null , but all the address fields are empty - I don't see the user address details.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi RT,

What do you mean by "address fields are empty?" I hope you are not checking the values while debugging, you need to call the getters to see the values from a model as they are lazily loaded.

Let the populator set the values on the DTO, and inspect the DTO if they have values

Hope this helps.

Best Shanmugaraja

Former Member
0 Kudos

yes the problem is on debugging ) I didn't know the getter do the retrive I will use now populator as you wrote thanks!

Answers (0)