001package org.biopax.paxtools.impl.level3; 002 003import org.biopax.paxtools.model.level3.PhenotypeVocabulary; 004import org.hibernate.annotations.Cache; 005import org.hibernate.annotations.CacheConcurrencyStrategy; 006import org.hibernate.annotations.Proxy; 007import org.hibernate.annotations.DynamicInsert; 008import org.hibernate.annotations.DynamicUpdate; 009import org.hibernate.search.annotations.Boost; 010import org.hibernate.search.annotations.Field; 011import org.hibernate.search.annotations.Analyze; 012import org.hibernate.search.annotations.Indexed; 013import org.hibernate.search.annotations.Store; 014 015import javax.persistence.Entity; 016import javax.persistence.Transient; 017 018/** 019 */ 020@Entity 021@Proxy(proxyClass= PhenotypeVocabulary.class) 022@Indexed 023@DynamicUpdate @DynamicInsert 024@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) 025public class PhenotypeVocabularyImpl extends ControlledVocabularyImpl 026 implements PhenotypeVocabulary 027{ 028 private String patoData; 029 030 public PhenotypeVocabularyImpl() { 031 } 032 033 @Override @Transient 034 public Class<? extends PhenotypeVocabulary> getModelInterface() { 035 return PhenotypeVocabulary.class; 036 } 037 038 039 @Field(name=FIELD_KEYWORD, store=Store.YES, analyze=Analyze.YES) 040 @Boost(1.1f) 041 public String getPatoData() 042 { 043 return patoData; 044 } 045 046 public void setPatoData(String patoData) 047 { 048 this.patoData = patoData; 049 } 050 051}