Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
ed9f7aee
Commit
ed9f7aee
authored
1 week ago
by
Piotr Gawron
Browse files
Options
Downloads
Plain Diff
Merge branch 'add-missing-element-id' into 'development'
add missing element-id See merge request
!1887
parents
0e2564dc
7cd368d6
No related branches found
Branches containing commit
No related tags found
1 merge request
!1887
add missing element-id
Pipeline
#103472
failed
1 week ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
model/src/main/java/lcsb/mapviewer/model/map/reaction/ReactionNode.java
+19
-18
19 additions, 18 deletions
.../java/lcsb/mapviewer/model/map/reaction/ReactionNode.java
with
19 additions
and
18 deletions
model/src/main/java/lcsb/mapviewer/model/map/reaction/ReactionNode.java
+
19
−
18
View file @
ed9f7aee
package
lcsb.mapviewer.model.map.reaction
;
import
javax.persistence.DiscriminatorValue
;
import
javax.persistence.Entity
;
import
javax.persistence.FetchType
;
import
javax.persistence.ManyToOne
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
lcsb.mapviewer.model.map.species.Element
;
import
lcsb.mapviewer.modelutils.map.ElementUtils
;
import
lcsb.mapviewer.modelutils.serializer.model.map.ElementAsIdSerializer
;
import
javax.persistence.DiscriminatorValue
;
import
javax.persistence.Entity
;
import
javax.persistence.FetchType
;
import
javax.persistence.ManyToOne
;
/**
* One of two known types of nodes in the {@link Reaction}. It defines input or
* output element of the reaction in the map model. {@link #element} define
...
...
@@ -21,17 +20,15 @@ import lcsb.mapviewer.modelutils.serializer.model.map.ElementAsIdSerializer;
* <li>{@link Product} - output of the reaction,</li>
* <li>{@link Modifier} - some modifier of the reaction.</li>
* </ul>
*
*
*
* @author Piotr Gawron
*
*/
@Entity
@DiscriminatorValue
(
"GENERIC_REACTION_NODE"
)
public
abstract
class
ReactionNode
extends
AbstractNode
{
/**
*
*
*/
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -53,9 +50,8 @@ public abstract class ReactionNode extends AbstractNode {
/**
* Constructor that creates a copy of the object in the parameter.
*
* @param node
* original node
*
* @param node original node
*/
protected
ReactionNode
(
final
ReactionNode
node
)
{
super
(
node
);
...
...
@@ -65,9 +61,8 @@ public abstract class ReactionNode extends AbstractNode {
/**
* Constructor that creates node for given {@link #element}.
*
* @param element
* {@link Element} to which this node refer to
*
* @param element {@link Element} to which this node refer to
*/
public
ReactionNode
(
final
Element
element
)
{
this
.
element
=
element
;
...
...
@@ -81,9 +76,15 @@ public abstract class ReactionNode extends AbstractNode {
return
element
;
}
public
String
getElementId
()
{
if
(
element
!=
null
)
{
return
element
.
getElementId
();
}
return
null
;
}
/**
* @param element
* the element to set
* @param element the element to set
* @see #element
*/
public
void
setElement
(
final
Element
element
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment