Hi! My name is Sergio, I'm developing a social network and it's the first
time that I use Apache Rave.
When a user create a new account, I need to add a property called "otherID"
(all users have two IDs).
I'm using the following function:
public User addOtherID(User user, String otherID) {
PersonProperty property = new PersonPropertyImpl("102",
"otherID", otherID, null, "", false);
List<PersonProperty> properties = user.getProperties();
properties.add(property);
user.setProperties(properties);
return user;
}
I save the returned user in other function with "userRepository.save(user)".
The problem: when I go to use that property, the properties of user are
empty.
There aren't errors when I compile and execute this function.
I'm doing something bad?
Best regards,
Sergio.