File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
login/src/main/java/com/glaum/login/repository Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1919import org .springframework .beans .factory .annotation .Autowired ;
2020import org .springframework .stereotype .Repository ;
2121
22- import com .glaum .login .entity .permission ;
22+ import com .glaum .login .entity .Permission ;
23+
2324
2425
2526@ Transactional
2627@ Repository
27- public class permissionDAO {
28+ public class PermissionDAO {
2829 @ PersistenceContext
2930 private EntityManager entityManager ;
3031
3132
3233
33- public permission findpermissionidByname (String name ) {
34- Query query = entityManager .createQuery ("from permission where name = ?" );
34+ public Permission findpermissionidByname (String name ) {
35+ Query query = entityManager .createQuery ("from Permission where name = ?" );
3536 query .setParameter (1 , name .toLowerCase ());
36- Optional <permission > optional = query .getResultList ().stream ().findFirst ();
37+ Optional <Permission > optional = query .getResultList ().stream ().findFirst ();
3738
3839 return optional .orElse (null );
3940 }
4041
41- public List <permission > findpermissionid () {
42- Query query = entityManager .createQuery ("from permission " );
42+ public List <Permission > findpermissionid () {
43+ Query query = entityManager .createQuery ("from Permission " );
4344
44- List <permission > listobj =(List <permission >) query .getResultList ().stream ().collect (Collectors .toList ());
45+ List <Permission > listobj =(List <Permission >) query .getResultList ().stream ().collect (Collectors .toList ());
4546
4647 return listobj ;
4748 }
You can’t perform that action at this time.
0 commit comments