package eu.etaxonomy.cdm.model.common;
-import eu.etaxonomy.cdm.model.agent.Person;
-import org.apache.log4j.Logger;
-import org.hibernate.annotations.Any;
-import org.hibernate.annotations.Cascade;
-import org.hibernate.annotations.CascadeType;
-import org.hibernate.envers.Audited;
-import org.hibernate.envers.NotAudited;
-
import java.net.MalformedURLException;
import java.net.URL;
-import javax.persistence.*;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.JoinColumn;
+import javax.persistence.ManyToOne;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
+import org.apache.log4j.Logger;
+import org.hibernate.annotations.Any;
+import org.hibernate.annotations.Cascade;
+import org.hibernate.annotations.CascadeType;
+import org.hibernate.envers.Audited;
+import org.hibernate.envers.NotAudited;
+
+import eu.etaxonomy.cdm.model.agent.Person;
+
/**
* @author m.doering
* @version 1.0
@XmlSchemaType(name = "IDREF")
@Any(metaDef = "CdmBase",
metaColumn=@Column(name = "annotatedObj_type"),
- fetch = FetchType.LAZY,
+ fetch = FetchType.EAGER,
optional = false)
@JoinColumn(name = "annotatedObj_id")
@NotAudited