Skip to content

Commit

Permalink
deleted empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Optic-Okulist committed Oct 1, 2023
1 parent ffc333f commit 0a56e74
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
@RestController
@RequestMapping(value = "/categories")
public class CategoryController {

private static final Logger logger = LogManager.getLogger(BookController.class);
private final CategoryService categoryService;
private final BookService bookService;
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/spring/boot/bookstore/model/CartItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,14 @@ public class CartItem {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@ManyToOne
@JoinColumn(name = "shopping_carts_id", nullable = false)
private ShoppingCart shoppingCart;

@OneToOne
@JoinColumn(name = "books_id", nullable = false)
private Book book;

@Column(name = "quantity", nullable = false)
private int quantity;

@Column(name = "is_deleted", nullable = false)
private boolean isDeleted = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public class ShoppingCart {
@OneToOne
@JoinColumn(name = "user_id", nullable = false)
private User user;

@ManyToMany
@JoinTable(name = "shopping_cart_items",
joinColumns = @JoinColumn(name = "shopping_cart_id"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@

@Repository
public interface CategoryRepository extends JpaRepository<Category, Long> {

}

0 comments on commit 0a56e74

Please sign in to comment.