My question is:
when creating the class, my class has an (autogenerated) ID. My constructor as well, when I had it this way I could not create a POST request because I couldn’t fill in the ID argument, because this should be auto-generated. So I removed it from the constructor but I kept it as an attribute of the class. Is this the right way? Because I’ve seen an aproach online of someone creating 2 constructors one with and one without the id in it.
My second question is. One of my attributes is a date, so I used the LocalData type for the variable. But when creating a POST request through postman (by giving JSON object) it put the value null in the date column/object. How am I supposed to fill in the date? I tried it “DD-MM-YYYY” but it gave the null.