unnötige Entity eigenschaften entfernt
This commit is contained in:
1 parent
84bf7b9129
commit
3a1c954023
2 files changed
+1
-5
No files matched your search
@@ -51,7 +51,7 @@ public class ShoppingListController {
|
||||
|
||||
@PostMapping("/api/lists")
|
||||
public ResponseEntity<ShoppingListResponseDTO> addList(@Valid @RequestBody ShoppingListPostDTO newList){
|
||||
ShoppingList list = new ShoppingList(newList.listName(), null, null, 0, 0);
|
||||
ShoppingList list = new ShoppingList(newList.listName());
|
||||
|
||||
shoppingListRepository.save(list);
|
||||
|
||||
|
||||
@@ -16,8 +16,4 @@ import java.sql.Date;
|
||||
@NoArgsConstructor
|
||||
public class ShoppingList extends ShoppingElement {
|
||||
private String listName;
|
||||
private Date dateCreated;
|
||||
private Date lastChanged;
|
||||
private int numberItems;
|
||||
private int numberCategory;
|
||||
}
|
||||
Reference in new issue
Block a user