i have a probleme with angularJs and java, when i send an object from service(AngularJs) it will be incomplete in java part
angularjs code:
$scope.nouveauAcompte= function() {
           var result=[];
           angular.forEach($scope.cras, function (row) {
               console.log(row);
               row.acompte.acoTotalMontant +=row.acompte.acoMontant;
               row.acompte.typeAcompte.atyId=row.acompte.typeAcompte.atyId;
               row.acompte.cras.Id=row.id;
               row.acompte.acoDate=new Date();
               var formatted_date = row.acompte.acoDate.getDate() + "/" + (row.acompte.acoDate.getMonth() + 1) + "/" + row.acompte.acoDate.getFullYear()
               row.acompte.acoDate=formatted_date;
              result.push(row.acompte);
           })
           $scope.acomptes=result;
            AcompteService.nouveauAcompte(
                    $scope.acomptes).success(function(data) {
            }, function(error) {
            });
        };
service.js
            nouveauAcompte: function (acomptes) {
                var parameter = JSON.stringify(acomptes);
                      return $http.post('addAcompte', parameter)
                      .success(function (data, status, headers) {
                     })
                     .error(function (data, status, headers) {
                     });
           },


as you can see the object is incomplete and i dont know why .
 
     
    