Fórum

Relationship between the UserModel and ContactModel

Max Winther, modificado 10 Anos atrás.

Relationship between the UserModel and ContactModel

New Member Mensagem: 1 Data de Entrada: 18/03/14 Postagens Recentes
Hi,
I am trying to maintain my UserModel in the post login from our primary CRM - system. It is no probelm simple values like firstname and lastname as theses values have setters on the user object. However when it comes to BirthDay it is a different issue. I have googled, and have found different suggestions like user.getBirthday().setTime(time) and other like user.getContact().setBirthday(). The first does not seem to work the latter I am about to try.

My wondereing is what is relationship between the UserModel and ContactModel, and is infact the property bithdate from contact the same as the one on user?

regards

Max
thumbnail
Harish Kumar, modificado 10 Anos atrás.

RE: Relationship between the UserModel and ContactModel

Expert Postagens: 483 Data de Entrada: 31/07/10 Postagens Recentes
Hi,

Yes, property birth date from contact is same as the one on user. Check user_ table, contactId field is mapped to contactId field in contact_ table.