emr_demo
Diff Revisions
3
vs
4
for /web_emr - Copy/src/main/java/com/bestray/security/repository/DepartmentRepository.java
|
@@ -1,17 +1,21 @@ |
1 |
1 |
|
package com.bestray.security.repository; |
2 |
2 |
|
|
|
3 |
+ |
import java.util.List; |
3 |
4 |
|
import java.util.Optional; |
4 |
5 |
|
|
5 |
6 |
|
import org.springframework.data.jpa.repository.JpaRepository; |
6 |
7 |
|
|
7 |
|
- |
import com.bestray.model.security.DepartmentMaster; |
|
8 |
+ |
import com.bestray.model.entity.DepartmentMaster; |
8 |
9 |
|
import com.bestray.model.security.User; |
9 |
10 |
|
|
10 |
11 |
|
public interface DepartmentRepository extends JpaRepository<DepartmentMaster, String>{ |
11 |
12 |
|
DepartmentMaster findByDepartmentName(String departmentName); |
12 |
13 |
|
Optional<DepartmentMaster> findById(String id); |
|
14 |
+ |
|
|
15 |
+ |
//public List<DepartmentMaster> findAll(); |
|
16 |
+ |
} |
13 |
17 |
|
// void saveall(JwtAuthenticationRequest authenticationRequest); |
14 |
18 |
|
// User save(User authenticationRequest); |
15 |
19 |
|
// User findById(Long id); |
16 |
20 |
|
|
17 |
|
- |
} |
|
21 |
+ |
|