Skip to content
GitLab
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
c235db33
Commit
c235db33
authored
Apr 10, 2014
by
Matija Obreza
Browse files
Fixed BadSqlGrammarException when accession id set is empty
parent
bd4de0ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/persistence/domain/TraitValueRepositoryImpl.java
View file @
c235db33
...
...
@@ -159,6 +159,11 @@ public class TraitValueRepositoryImpl implements TraitValueRepository {
@Override
public
Map
<
Long
,
Map
<
Long
,
List
<
Object
>>>
getValues
(
Metadata
metadata
,
List
<
Method
>
methods
,
List
<
Accession
>
accessions
)
{
final
Map
<
Long
,
Map
<
Long
,
List
<
Object
>>>
accessionMetadataValues
=
new
HashMap
<
Long
,
Map
<
Long
,
List
<
Object
>>>();
if
(
accessions
.
size
()
==
0
)
{
return
accessionMetadataValues
;
}
final
Set
<
Long
>
accessionIds
=
new
HashSet
<
Long
>(
accessions
.
size
());
for
(
Accession
accession
:
accessions
)
{
// create lists
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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