Project

General

Profile

« Previous | Next » 

Revision 0ae18eec

Added by Anahit Babadshanjan about 16 years ago

Using external marshaller listener to set id=0 in case of DefinedTermBase derived classes.
Using read-only transaction.

View differences:

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

  
20 20
import javax.persistence.OneToMany;
21 21
import javax.persistence.Transient;
22
import javax.xml.bind.annotation.XmlAccessType;
23
import javax.xml.bind.annotation.XmlAccessorType;
22 24
import javax.xml.bind.annotation.XmlElement;
23 25
import javax.xml.bind.annotation.XmlElementWrapper;
24 26
import javax.xml.bind.annotation.XmlElements;
27
import javax.xml.bind.annotation.XmlType;
25 28

  
26 29
import org.apache.log4j.Logger;
27 30
import org.hibernate.annotations.Cascade;
......
43 46
 * @created 08-Nov-2007 13:06:24
44 47
 */
45 48

  
49
@XmlAccessorType(XmlAccessType.FIELD)
50
@XmlType(name = "DescriptionBase", propOrder = {
51
    "describedSpecimenOrObservations",
52
    "descriptionSources",
53
    "descriptionElements"
54
})
46 55
@Entity
47 56
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
48 57
public abstract class DescriptionBase extends IdentifiableEntity {

Also available in: Unified diff