title: constructor cannot be applied to given types ? actual and formal argument lists differ in length
body: <p><strong>I have the following java Model class :</strong></p>
  
  <pre><code>@Data
  public class Modality {
  
      private BigInteger id;
      private String name;
      private String typemod;
      private Float typem;
      private Float tempspl;
      private String typemodeti;
      private String preparation;
      private String comment;
  }
  </code></pre>
  
  <p><strong>I have the following Entity class :</strong></p>
  
  <pre><code>@Data
  @Entity
  @Table(name = "tb_Modality")
  public class ModalityEntity {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "id", columnDefinition = "bigint(20)")
      private BigInteger id;
  
      @Column(name = "name")
      private String name;
  
      @Column(name = "typec")
      private String typec;
  
      @Column(name = "typedim")
      private Float typedim;
      @Column(name = "tempspl")
      private Float tempspl;
      @Column(name = "preparation")
      private String preparation;
  
      @Column(name = "typemod")
      private String typemod;
  
      @Column(name= "comment")
      private String comment;
  }
  </code></pre>
  
  <p><strong>I have the following java class :</strong></p>
  
  <pre><code>@Component
  public class ScheduledTasks {
  
      private static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ssZ");
      private final Logger log = LoggerFactory.getLogger(this.getClass());
  
      @Autowired
      StandardPlanServiceImpl standardplanDao;
      @Autowired
      ModalityServiceImpl modalityDao;
  
      @Scheduled(fixedRate = 5000)
      public void reportCurrentTime() throws Exception {
  
          log.error("The time is now {}", dateFormat.format(new Date()));        
          List&lt;StandardPlan&gt; list = standardplanDao.getAllStandardPlan();
          List&lt;Modality&gt; modalityList = modalityDao.getAllModality();
  
          for(StandardPlan plan : list) {
              log.error("Plan : " + plan.getType());
          }
          for(Modality modaList : modalityList){
              log.error("Modality List :"+modaList.getComment());
          }
  
          modalityDao.save(newModality("testName", "Moyenne", 6.F, 4.F, "OUI", "OUI", "TestComment"));
  
          modalityDao.getAllModality().forEach(c-&gt; {
              System.out.println(c.getName());
          });
      }
  }
  </code></pre>
  
  <p><strong>And when i compile i got this error in docker console:</strong></p>
  
  <blockquote>
    <p>constructor Modality in class App.Test.model.Modality cannot be applied to given types;
     [ERROR]   required: no arguments
     [ERROR]   found: java.lang.String,java.lang.String,float,float,java.lang.String,java.lang.String,java.lang.String
     [ERROR]   reason: actual and formal argument lists differ in length</p>
  </blockquote>