Project

General

Profile

« Previous | Next » 

Revision b1d1518e

Added by Andreas Müller about 8 years ago

Add secMicroReference #5717

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonBase.java
12 12
import java.lang.reflect.Method;
13 13
import java.util.List;
14 14

  
15
import javax.persistence.Column;
15 16
import javax.persistence.Entity;
16 17
import javax.persistence.FetchType;
17 18
import javax.persistence.ManyToOne;
......
45 46
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
46 47
import eu.etaxonomy.cdm.model.reference.Reference;
47 48
import eu.etaxonomy.cdm.strategy.cache.TaggedText;
49
import eu.etaxonomy.cdm.strategy.cache.name.CacheUpdate;
48 50
import eu.etaxonomy.cdm.strategy.cache.taxon.ITaxonCacheStrategy;
49 51
import eu.etaxonomy.cdm.validation.Level2;
50 52
import eu.etaxonomy.cdm.validation.Level3;
53
import eu.etaxonomy.cdm.validation.annotation.NullOrNotEmpty;
51 54
import eu.etaxonomy.cdm.validation.annotation.TaxonNameCannotBeAcceptedAndSynonym;
52 55

  
53 56
/**
......
134 137
    @IndexedEmbedded
135 138
    private Reference<?> sec;
136 139

  
140
    @XmlElement(name = "secMicroReference")
141
    @CacheUpdate(noUpdate ="titleCache")
142
    @NullOrNotEmpty
143
    @Column(length=255)
144
    private String secMicroReference;
145

  
137 146

  
138 147
    @XmlElement(name = "AppendedPhrase")
139 148
    private String appendedPhrase;
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/v36_40/SchemaUpdater_36_40.java
70 70
        step = ColumnAdder.NewClobInstance(stepName, tableName, newColumnName, INCLUDE_AUDIT);
71 71
        stepList.add(step);
72 72

  
73
		return stepList;
73
        //#5717
74
        //Add sec micro reference
75
        stepName = "Add secMicroReference to TaxonBase";
76
        tableName = "TaxonBase";
77
        newColumnName = "secMicroReference";
78
        step = ColumnAdder.NewStringInstance(stepName, tableName, newColumnName, INCLUDE_AUDIT);
79
        stepList.add(step);
80

  
81
        return stepList;
74 82
	}
75 83

  
76 84

  
cdmlib-test/src/main/resources/dbscripts/001-cdm.h2.sql
4190 4190
    LSID_NAMESPACE VARCHAR(255),
4191 4191
    LSID_OBJECT VARCHAR(255),
4192 4192
    LSID_REVISION VARCHAR(255),
4193
	SECMICROREFERENCE VARCHAR(255),
4193 4194
    PROTECTEDTITLECACHE BOOLEAN NOT NULL,
4194 4195
    TITLECACHE VARCHAR(255),
4195 4196
    APPENDEDPHRASE VARCHAR(255),
......
4224 4225
    PROTECTEDTITLECACHE BOOLEAN,
4225 4226
    TITLECACHE VARCHAR(255),
4226 4227
    APPENDEDPHRASE VARCHAR(255),
4228
	SECMICROREFERENCE VARCHAR(255),
4227 4229
    DOUBTFUL BOOLEAN,
4228 4230
    PUBLISH BOOLEAN,
4229 4231
    USENAMECACHE BOOLEAN,

Also available in: Unified diff