Clover icon

sunshower-core

  1. Project Clover database Fri Apr 6 2018 03:27:42 UTC
  2. Package io.sunshower.service.model

File PropertyGraphElement.java

 

Coverage histogram

../../../../img/srcFileCovDistChart0.png
60% of files have more coverage

Code metrics

0
3
3
1
28
22
3
1
1
3
1

Classes

Class Line # Actions
PropertyGraphElement 9 3 3
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package io.sunshower.service.model;
2   
3    import javax.persistence.FetchType;
4    import javax.persistence.JoinColumn;
5    import javax.persistence.ManyToOne;
6    import javax.persistence.MappedSuperclass;
7   
8    @MappedSuperclass
 
9    public class PropertyGraphElement<G extends PropertyGraph>
10    extends PropertyAwareObject<PropertyGraphElement<G>> {
11   
12    @ManyToOne(fetch = FetchType.LAZY)
13    @JoinColumn(name = "graph_id")
14    private G graph;
15   
 
16  0 toggle @SuppressWarnings("unchecked")
17    protected PropertyGraphElement(Class<G> type) {
18  0 super((Class) type);
19    }
20   
 
21  0 toggle public G getGraph() {
22  0 return graph;
23    }
24   
 
25  0 toggle public void setGraph(G graph) {
26  0 this.graph = graph;
27    }
28    }