Skip to content
Snippets Groups Projects
Commit f96f720b authored by Piotr Gawron's avatar Piotr Gawron
Browse files

antisensernaregion uses string type maping

parent 3ef46380
No related branches found
No related tags found
1 merge request!345Resolve "Genes annotations don't show"
......@@ -5,6 +5,8 @@ import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
......@@ -79,6 +81,7 @@ public class AntisenseRnaRegion implements Serializable, ElementModification {
* </ul>
*/
@Column(name = "type")
@Enumerated(EnumType.STRING)
private AntisenseRnaRegionType type;
/**
......
-- antisense rna uses string type
alter table antisense_rna_region_table add column type_string varchar(255);
update antisense_rna_region_table set type_string ='MODIFICATION_SITE' where type =0;
update antisense_rna_region_table set type_string ='CODING_REGION' where type =1;
update antisense_rna_region_table set type_string ='PROTEIN_BINDING_DOMAIN' where type =2;
alter table antisense_rna_region_table drop column type;
alter table antisense_rna_region_table rename COLUMN type_string to type;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment