Project

General

Profile

« Previous | Next » 

Revision 1e88ae89

Added by Andreas Müller almost 8 years ago

Define column name for feature inverse representation #5815

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/description/Feature.java
19 19

  
20 20
import javax.persistence.Entity;
21 21
import javax.persistence.FetchType;
22
import javax.persistence.JoinColumn;
22 23
import javax.persistence.JoinTable;
23 24
import javax.persistence.ManyToMany;
24 25
import javax.persistence.OneToMany;
......
146 147
	@XmlElementWrapper(name = "InverseRepresentations")
147 148
    @XmlElement(name = "Representation")
148 149
    @OneToMany(fetch = FetchType.LAZY, orphanRemoval=true)
149
    @JoinTable(name="RelationshipTermBase_inverseRepresentation")
150
    @JoinTable(name="RelationshipTermBase_inverseRepresentation",
151
            joinColumns=@JoinColumn(name="relationshiptermbase_id")
152
    )
150 153
    @Cascade({CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE})
151 154
    @IndexedEmbedded(depth = 2)
152 155
    private Set<Representation> inverseRepresentations = new HashSet<Representation>();
......
589 592
		super.setIncludes(includes);
590 593
	}
591 594

  
595
// ***************** Invers Label *****************************************/
596

  
592 597
	public Set<Representation> getInverseRepresentations() {
593 598
        return inverseRepresentations;
594 599
    }
......
630 635
        }
631 636
        return result;
632 637
    }
633

  
638
// ****************** END INVERS REPRESENTATION **************************/
634 639

  
635 640
	/**
636 641
	 * Creates and returns a new feature instance on the basis of a given string

Also available in: Unified diff