Project

General

Profile

« Previous | Next » 

Revision 5d49833e

Added by Ben Clark almost 15 years ago

Annotated References, Media, and Agents, and also added more data types to the anyTypeDefs to allow more types of data to be annotated and marked etc, and added a jaxb annotation to OriginalSource.sourcedObj

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/Thesis.java
25 25
import org.hibernate.annotations.Cascade;
26 26
import org.hibernate.annotations.CascadeType;
27 27
import org.hibernate.envers.Audited;
28
import org.hibernate.search.annotations.Indexed;
29
import org.hibernate.search.annotations.IndexedEmbedded;
28 30
import org.springframework.beans.factory.annotation.Configurable;
29 31

  
30 32
import eu.etaxonomy.cdm.model.agent.Institution;
......
50 52
})
51 53
@XmlRootElement(name = "Thesis")
52 54
@Entity
55
@Indexed(index = "eu.etaxonomy.cdm.model.reference.ReferenceBase")
53 56
@Audited
54 57
@Configurable
55 58
public class Thesis extends PublicationBase<IReferenceBaseCacheStrategy<Thesis>> implements Cloneable{
......
60 63
    @XmlIDREF
61 64
    @XmlSchemaType(name = "IDREF")
62 65
	@ManyToOne(fetch = FetchType.LAZY)
66
	@IndexedEmbedded
63 67
	@Cascade(CascadeType.SAVE_UPDATE)
64 68
	private Institution school;
65 69
	

Also available in: Unified diff