import javax.persistence.Entity;
-import javax.persistence.Transient;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
import org.apache.log4j.Logger;
+import org.hibernate.envers.Audited;
+import org.hibernate.search.annotations.Indexed;
+
+import eu.etaxonomy.cdm.strategy.cache.reference.IReferenceBaseCacheStrategy;
/**
* This (abstract) class represents isolated sections (parts, chapters or
* @version 1.0
* @created 08-Nov-2007 13:06:51
*/
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "SectionBase", propOrder = {
+// "pages"
+})
+@XmlRootElement(name = "SectionBase")
@Entity
-public abstract class SectionBase extends StrictReferenceBase {
- static Logger logger = Logger.getLogger(SectionBase.class);
- private String pages;
+@Indexed(index = "eu.etaxonomy.cdm.model.reference.ReferenceBase")
+@Audited
+@Deprecated
+public abstract class SectionBase<S extends IReferenceBaseCacheStrategy> extends ReferenceBase<S> {
+ private static final long serialVersionUID = -2430228069266443975L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(SectionBase.class);
+
+// @XmlElement(name = "Pages")
+// @Field(index=Index.TOKENIZED)
+// private String pages;
/**
* Returns the string representing the page(s) where the content of
this.pages = pages;
}
- /**
- * Returns the {@link PrintedUnitBase printed unit} to which <i>this</i> section
- * belongs.
- *
- * @return the printed unit containing <i>this</i> section
- */
- @Transient
- public PrintedUnitBase getPrintedUnit(){
- logger.warn("Not yet implemented");
- return null;
- }
-//*********** CLONE **********************************/
+
/**
* Clones <i>this</i> section. This is a shortcut that enables to
* create a new instance that differs only slightly from <i>this</i> section
* This method overrides the clone method from {@link StrictReferenceBase StrictReferenceBase}.
*
* @see StrictReferenceBase#clone()
- * @see eu.etaxonomy.cdm.model.media.IdentifyableMediaEntity#clone()
+ * @see eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity#clone()
* @see java.lang.Object#clone()
*/
@Override