Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
2fe4a23d
Commit
2fe4a23d
authored
Oct 21, 2013
by
Matija Obreza
Browse files
Fixed lazyload exception with organization.members
parent
eb63f330
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/service/impl/GenesysServiceImpl.java
View file @
2fe4a23d
...
...
@@ -276,10 +276,11 @@ public class GenesysServiceImpl implements GenesysService, TraitService {
@Override
public
Page
<
Accession
>
listAccessionsByOrganization
(
Organization
organization
,
Pageable
pageable
)
{
if
(
organization
.
getMembers
()
==
null
||
organization
.
getMembers
().
size
()
==
0
)
{
List
<
FaoInstitute
>
members
=
organizationRepository
.
findInstitutesByOrganization
(
organization
);
if
(
members
==
null
||
members
.
size
()
==
0
)
{
return
new
LucenePage
<
Accession
>(
0
,
0
);
}
return
accessionRepository
.
findByInstitute
(
organization
.
getM
embers
()
,
pageable
);
return
accessionRepository
.
findByInstitute
(
m
embers
,
pageable
);
}
@Override
...
...
Write
Preview
Supports
Markdown
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