Clover icon

sunshower-core

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

File TemplateLink.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart5.png
36% of files have more coverage

Code metrics

2
5
3
1
29
23
4
0.8
1.67
3
1.33

Classes

Class Line # Actions
12 5 4
0.550%
 

Contributing tests

This file is covered by 1 test. .

Source view

1    package io.sunshower.service.orchestration.model;
2   
3    import io.sunshower.model.core.Schemata;
4    import io.sunshower.service.model.AbstractEntityLink;
5    import io.sunshower.service.model.LinkageMode;
6    import io.sunshower.service.model.RelationshipType;
7    import javax.persistence.Entity;
8    import javax.persistence.Table;
9   
10    @Entity
11    @Table(name = "TEMPLATE_LINK", schema = Schemata.SUNSHOWER)
 
12    public class TemplateLink extends AbstractEntityLink<Template, Template> {
13   
 
14  0 toggle protected TemplateLink() {
15  0 this(null, null, null, null);
16    }
17   
 
18  1 toggle public TemplateLink(Template source, Template target, LinkageMode mode, RelationshipType type) {
19  1 super(source, target, mode, type);
20  1 if (target != null) {
21  1 target.setLink(this);
22    }
23    }
24   
 
25  0 toggle public TemplateLink(Template template, Template linked) {
26   
27  0 this(template, linked, LinkageMode.Linked, RelationshipType.Parent);
28    }
29    }