001package org.biopax.paxtools.impl.level3; 002 003import org.biopax.paxtools.model.BioPAXElement; 004import org.biopax.paxtools.model.level3.UnificationXref; 005import org.hibernate.annotations.Cache; 006import org.hibernate.annotations.CacheConcurrencyStrategy; 007import org.hibernate.annotations.Proxy; 008import org.hibernate.annotations.DynamicInsert; 009import org.hibernate.annotations.DynamicUpdate; 010import org.hibernate.search.annotations.Boost; 011import org.hibernate.search.annotations.Indexed; 012 013import javax.persistence.Entity; 014import javax.persistence.Transient; 015 016@Entity 017@Proxy(proxyClass= UnificationXref.class) 018@Indexed 019@Boost(1.1f) 020@DynamicUpdate @DynamicInsert 021@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) 022public class UnificationXrefImpl extends XrefImpl implements UnificationXref { 023 024 public UnificationXrefImpl() { 025 } 026 027 @Transient 028 public Class<? extends UnificationXref> getModelInterface() { 029 return UnificationXref.class; 030 } 031 032 @Override 033 protected boolean semanticallyEquivalent(BioPAXElement other) { 034 return (other instanceof UnificationXref) && super.semanticallyEquivalent(other); 035 } 036 037}