//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.10.10 at 02:39:29 PM KST
//
package org.oliot.model.oliot;
import java.util.HashMap;
import java.util.Map;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
/**
* <p>
* Java class for EPCISEventExtensionType complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within
* this class.
*
* <pre>
* <complexType name="EPCISEventExtensionType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="eventID" type="{urn:epcglobal:epcis:xsd:1}EventIDType" minOccurs="0"/>
* <element name="errorDeclaration" type="{urn:epcglobal:epcis:xsd:1}ErrorDeclarationType" minOccurs="0"/>
* <element name="extension" type="{urn:epcglobal:epcis:xsd:1}EPCISEventExtension2Type" minOccurs="0"/>
* </sequence>
* <anyAttribute processContents='lax'/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EPCISEventExtensionType", propOrder = { "eventID", "errorDeclaration", "extension" })
@Entity
public class EPCISEventExtension {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
//@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="TAB_EPCISEventExtension_SEQ")
//@SequenceGenerator(name="TAB_EPCISEventExtension_SEQ", sequenceName="TAB_EPCISEventExtension_SEQ", allocationSize=1)
private int id;
protected String eventID;
@OneToOne
@JoinColumn(name="errorDeclaration_id")
protected ErrorDeclaration errorDeclaration;
@OneToOne
@JoinColumn(name="EPCISEventExtension2_id")
protected EPCISEventExtension2 extension;
@Transient
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the eventID property.
*
* @return possible object is {@link String }
*
*/
public String getEventID() {
return eventID;
}
/**
* Sets the value of the eventID property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setEventID(String value) {
this.eventID = value;
}
/**
* Gets the value of the errorDeclaration property.
*
* @return possible object is {@link ErrorDeclaration }
*
*/
public ErrorDeclaration getErrorDeclaration() {
return errorDeclaration;
}
/**
* Sets the value of the errorDeclaration property.
*
* @param value
* allowed object is {@link ErrorDeclaration }
*
*/
public void setErrorDeclaration(ErrorDeclaration value) {
this.errorDeclaration = value;
}
/**
* Gets the value of the extension property.
*
* @return possible object is {@link EPCISEventExtension2 }
*
*/
public EPCISEventExtension2 getExtension() {
return extension;
}
/**
* Sets the value of the extension property.
*
* @param value
* allowed object is {@link EPCISEventExtension2 }
*
*/
public void setExtension(EPCISEventExtension2 value) {
this.extension = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed
* property on this class.
*
* <p>
* the map is keyed by the name of the attribute and the value is the string
* value of the attribute.
*
* the map returned by this method is live, and you can add new attribute by
* updating the map directly. Because of this design, there's no setter.
*
*
* @return always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
public void setOtherAttributes(Map<QName, String> otherAttributes) {
this.otherAttributes = otherAttributes;
}
}