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
f195b91e
Commit
f195b91e
authored
May 06, 2014
by
Matija Obreza
Browse files
Taxonomy find method must use '' instead of null
parent
8065598c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/service/impl/TaxonomyServiceImpl.java
View file @
f195b91e
...
...
@@ -150,12 +150,12 @@ public class TaxonomyServiceImpl implements TaxonomyService {
@Override
public
long
getTaxonomy2Id
(
String
genus
)
{
return
taxonomy2Repository
.
findByGenusAndSpeciesAndSpAuthorAndSubtaxaAndSubtAuthor
(
genus
,
"sp."
,
null
,
null
,
null
).
getId
();
return
taxonomy2Repository
.
findByGenusAndSpeciesAndSpAuthorAndSubtaxaAndSubtAuthor
(
genus
,
"sp."
,
""
,
""
,
""
).
getId
();
}
@Override
public
long
getTaxonomy2Id
(
String
genus
,
String
species
)
{
Taxonomy2
tax
=
taxonomy2Repository
.
findByGenusAndSpeciesAndSpAuthorAndSubtaxaAndSubtAuthor
(
genus
,
species
,
null
,
null
,
null
);
Taxonomy2
tax
=
taxonomy2Repository
.
findByGenusAndSpeciesAndSpAuthorAndSubtaxaAndSubtAuthor
(
genus
,
species
,
""
,
""
,
""
);
return
tax
.
getId
();
}
...
...
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