I don't know if it is a Spring problems or jackson but see it please :
{
"usersClients": [
{
"pkUsersClients": {
"id": 2,
"user": {
"idUser": 31,
"login": "EditUser",
"pwd": "$2a$10$7G/GWrd5...",
"locked": "F",
"avatar": null
},
"client": {
"idClient": 1,
"name": "SOCIETY 1",
"description": "TEST 1",
"logo": "/9j/4QDCRXh..."
}
},
"date_begin": null,
"date_end": null,
"enable": false,
"user": 31,
"idClient": 1
},
{
"pkUsersClients": {
"id": 3,
"user": 31,
"client": 1
},
"date_begin": 1464818400000,
"date_end": null,
"enable": false,
"user": 31,
"idClient": 1
},
{
"pkUsersClients": {
"id": 4,
"user": 31,
"client": {
"idClient": 5,
"name": "SOCIETY 99",
"description": "TEST99",
"logo": "iVBORw0KGgoAAAANSUh..."
}
},
"date_begin": 1464818400000,
"date_end": 1467237600000,
"enable": false,
"user": 31,
"idClient": 5
}
]
}
As you can see, first pkUsersClients has user and client with information like login or name. The last pkUsersClients too. But the second, as it has the same id and user of the first pkUsersClients, informations are not developped :/
Do you have an idea why ? thanks