Clover icon

sunshower-base

  1. Project Clover database Fri Apr 6 2018 03:41:27 UTC
  2. Package io.sunshower.persistence.core

File Tags.java

 

Coverage histogram

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

Code metrics

0
4
4
1
33
25
4
1
1
4
1

Classes

Class Line # Actions
Tags 8 4 4
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package io.sunshower.persistence.core;
2   
3    import io.sunshower.persistence.core.converters.ClassConverter;
4    import javax.persistence.*;
5   
6    @Entity
7    @Table(name = "ENTITY_TAGS")
 
8    public class Tags extends DistributableEntity {
9   
10    @Column(name = "entity_type")
11    @Convert(converter = ClassConverter.class)
12    private Class<?> type;
13   
14    @ManyToOne(cascade = CascadeType.ALL)
15    @PrimaryKeyJoinColumn(name = "tag_id")
16    private Tag tag;
17   
 
18  0 toggle public Class<?> getType() {
19  0 return type;
20    }
21   
 
22  0 toggle public void setType(Class<?> type) {
23  0 this.type = type;
24    }
25   
 
26  0 toggle public Tag getTag() {
27  0 return tag;
28    }
29   
 
30  0 toggle public void setTag(Tag tag) {
31  0 this.tag = tag;
32    }
33    }