Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Genesys Backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
45
Issues
45
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Backend
Commits
59697156
Commit
59697156
authored
Jul 20, 2018
by
Matija Obreza
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix AccesssionListRepository native queries
parent
ce838010
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/main/java/org/genesys2/server/persistence/domain/AccessionListRepository.java
...s2/server/persistence/domain/AccessionListRepository.java
+4
-4
No files found.
src/main/java/org/genesys2/server/persistence/domain/AccessionListRepository.java
View file @
59697156
...
...
@@ -39,18 +39,18 @@ public interface AccessionListRepository extends JpaRepository<AccessionList, Lo
@Query
(
"from AccessionList al where al.uuid in (?1)"
)
List
<
AccessionList
>
findByUuids
(
List
<
UUID
>
uuid
);
@Query
(
nativeQuery
=
true
,
value
=
"insert into acce
listitems
(listid, acceid) values (?1, ?2)"
)
@Query
(
nativeQuery
=
true
,
value
=
"insert into acce
ssion_listitem
(listid, acceid) values (?1, ?2)"
)
@Modifying
void
addOne
(
AccessionList
list
,
AccessionId
accession
);
@Query
(
nativeQuery
=
true
,
value
=
"insert into acce
listitems
(listid, acceid) values (?1, ?2)"
)
@Query
(
nativeQuery
=
true
,
value
=
"insert into acce
ssion_listitem
(listid, acceid) values (?1, ?2)"
)
@Modifying
void
addOne
(
AccessionList
acceList
,
long
acceId
);
@Query
(
nativeQuery
=
true
,
value
=
"select count(acceid) from acce
listitems
where listid = ?1"
)
@Query
(
nativeQuery
=
true
,
value
=
"select count(acceid) from acce
ssion_listitem
where listid = ?1"
)
int
sizeOf
(
AccessionList
list
);
@Query
(
nativeQuery
=
true
,
value
=
"select count(distinct acceid) from acce
listitems
where listid in (?1)"
)
@Query
(
nativeQuery
=
true
,
value
=
"select count(distinct acceid) from acce
ssion_listitem
where listid in (?1)"
)
int
distinctCount
(
List
<
AccessionList
>
accessionLists
);
@Query
(
"from AccessionList al where al.shared=1 order by al.title asc"
)
...
...
Matija Obreza
@mobreza
mentioned in issue
#278 (closed)
·
Jul 21, 2018
mentioned in issue
#278 (closed)
mentioned in issue #278
Toggle commit list
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