Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
30f0df4d
Commit
30f0df4d
authored
Feb 05, 2021
by
michael.simon
Browse files
correct jql query for type
parent
e91c3e1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-jpa/src/main/java/edu/kit/scc/webreg/dao/jpa/JpaRegistryDao.java
View file @
30f0df4d
...
...
@@ -137,7 +137,7 @@ public class JpaRegistryDao extends JpaBaseDao<RegistryEntity, Long> implements
@Override
public
List
<
RegistryEntity
>
findAllExternalBySsn
(
String
serviceShortName
)
{
return
em
.
createQuery
(
"select r from RegistryEntity r where r.service.shortName = :ssn and "
+
" TYPE(r.user) = :class"
)
+
" TYPE(r.user
.class
) = :class"
)
.
setParameter
(
"ssn"
,
serviceShortName
)
.
setParameter
(
"class"
,
ExternalUserEntity
.
class
)
.
getResultList
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment