Jean-Francois Leveque

Suppression de Book* dans entities.

1 -package org.legrog.entities;
2 -
3 -import javax.persistence.*;
4 -
5 -@Entity
6 -public class Book {
7 -
8 - @Id
9 - @GeneratedValue(strategy = GenerationType.IDENTITY)
10 - private int bookId;
11 - private String bookTitle;
12 -
13 - public int getBookId() {
14 - return bookId;
15 - }
16 -
17 - public void setBookId(int bookId) {
18 - this.bookId = bookId;
19 - }
20 -
21 - public String getBookTitle() {
22 - return bookTitle;
23 - }
24 -
25 - public void setBookTitle(String bookName) {
26 - this.bookTitle = bookName;
27 - }
28 -
29 - @Override
30 - public String toString() {
31 - return "Book{" +
32 - "bookId=" + bookId +
33 - ", bookTitle='" + bookTitle + '\'' +
34 - '}';
35 - }
36 -}
37 -
1 -package org.legrog.entities;
2 -
3 -import org.springframework.data.jpa.repository.JpaRepository;
4 -
5 -
6 -public interface BookRepository extends JpaRepository<Book, Integer> {
7 -}