File tree Expand file tree Collapse file tree 2 files changed +11
-18
lines changed
lesson_25/db/db_app/src/main/java/com/codedifferently/lesson25 Expand file tree Collapse file tree 2 files changed +11
-18
lines changed Original file line number Diff line number Diff line change 33import jakarta .persistence .Entity ;
44import jakarta .persistence .Id ;
55import jakarta .persistence .Table ;
6+
67@ Entity
7- @ Table (name = "library_users" )
8+ @ Table (name = "library_users" )
89public class LibraryUserModel {
9-
10- @ Id
11- public Integer userId ;
12-
13- public String email ;
14-
15- public String firstName ;
16- public String lastName ;
17- public String password ;
1810
19- }
11+ @ Id public Integer userId ;
2012
13+ public String email ;
14+
15+ public String firstName ;
16+ public String lastName ;
17+ public String password ;
18+ }
Original file line number Diff line number Diff line change 55
66package com .codedifferently .lesson25 .repository ;
77
8- import org .springframework .data .repository .CrudRepository ;
9-
108import com .codedifferently .lesson25 .models .LibraryUserModel ;
9+ import org .springframework .data .repository .CrudRepository ;
1110
1211/**
13- *
1412 * @author vscode
1513 */
16- public interface LibraryUserRepository extends CrudRepository <LibraryUserModel , String > {
17-
18-
19- }
14+ public interface LibraryUserRepository extends CrudRepository <LibraryUserModel , String > {}
You can’t perform that action at this time.
0 commit comments