on 01-29-2017 2:07 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.