From 7c3916a6ce14d6356f3be3f4518dcb746d099429 Mon Sep 17 00:00:00 2001 From: Igor Date: Thu, 18 Nov 2021 12:33:34 +0100 Subject: [PATCH] modified pom --- pom.xml | 10 +- src/main/java/com/release11/DAO.java | 34 ++- src/main/java/com/release11/Main.java | 14 +- .../META-INF/JAXB/episode_default-cli.xjb | 26 +++ target/classes/com/release11/DAO.class | Bin 7409 -> 7575 bytes target/classes/com/release11/Main$1.class | Bin 3932 -> 4087 bytes target/classes/com/release11/Main.class | Bin 2341 -> 2341 bytes target/classes/generated/MaterialType.class | Bin 0 -> 2554 bytes .../classes/generated/MaterialTypeType.class | Bin 0 -> 2340 bytes target/classes/generated/ObjectFactory.class | Bin 0 -> 1388 bytes target/classes/generated/Package.class | Bin 0 -> 2175 bytes .../META-INF/JAXB/episode_default-cli.xjb | 26 +++ .../jaxb/generated/MaterialType.java | 221 ++++++++++++++++++ .../jaxb/generated/MaterialTypeType.java | 79 +++++++ .../jaxb/generated/ObjectFactory.java | 72 ++++++ .../jaxb/generated/Package.java | 211 +++++++++++++++++ target/jaxb2/.default-cli-xjcStaleFlag | 0 17 files changed, 681 insertions(+), 12 deletions(-) create mode 100644 target/classes/META-INF/JAXB/episode_default-cli.xjb create mode 100644 target/classes/generated/MaterialType.class create mode 100644 target/classes/generated/MaterialTypeType.class create mode 100644 target/classes/generated/ObjectFactory.class create mode 100644 target/classes/generated/Package.class create mode 100644 target/generated-sources/jaxb/META-INF/JAXB/episode_default-cli.xjb create mode 100644 target/generated-sources/jaxb/generated/MaterialType.java create mode 100644 target/generated-sources/jaxb/generated/MaterialTypeType.java create mode 100644 target/generated-sources/jaxb/generated/ObjectFactory.java create mode 100644 target/generated-sources/jaxb/generated/Package.java create mode 100644 target/jaxb2/.default-cli-xjcStaleFlag diff --git a/pom.xml b/pom.xml index e27c38b..a9d7c74 100644 --- a/pom.xml +++ b/pom.xml @@ -108,16 +108,8 @@ - - org.apache.maven.plugins - maven-compiler-plugin - - 17 - 17 - - - \ No newline at end of file + diff --git a/src/main/java/com/release11/DAO.java b/src/main/java/com/release11/DAO.java index b0abf50..da807bd 100644 --- a/src/main/java/com/release11/DAO.java +++ b/src/main/java/com/release11/DAO.java @@ -1,5 +1,6 @@ package com.release11; +import generated.MaterialType; import org.apache.camel.Exchange; import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -26,13 +27,42 @@ public class DAO { return xml; } + + + + public void getId(Exchange exchange) throws InterruptedException { - String tmp = exchange.getIn().getBody().toString(); - System.out.println(tmp); + MaterialType tmp = (MaterialType) exchange.getIn().getBody(); + System.out.println(tmp.getDescription()+tmp.getMaterialName()); + Thread.sleep(10000); exchange.getIn().setBody("SELECT * FROM package WHERE material_id = 1"); } + public void test2(Exchange exchange) throws InterruptedException { + + HashMap map = (HashMap) exchange.getIn().getBody(); + MaterialType materialType = new MaterialType(); + materialType.setMaterialType(map.get("")); + + System.out.println(tmp.getDescription()+tmp.getMaterialName()); + Thread.sleep(10000); + exchange.getIn().setBody("SELECT * FROM package WHERE material_id = 1"); + } + + + + + + + + + + + + + + public void splitPackage(LinkedHashMap packageMap) { Package pack = new Package(); pack.setId((Integer) packageMap.get("id")); diff --git a/src/main/java/com/release11/Main.java b/src/main/java/com/release11/Main.java index 4e995f6..1977c81 100644 --- a/src/main/java/com/release11/Main.java +++ b/src/main/java/com/release11/Main.java @@ -88,11 +88,22 @@ public class Main { .to("activemq:queue:materialTest"); from("activemq:queue:materialTest") + .bean(new DAO(), "test2") .marshal(XMLDataFormat) .to("activemq:queue:test"); + + + + + + + + + + from("direct:pretty") .setBody(constant("" + "\n" + @@ -117,6 +128,7 @@ public class Main { "\n")) .unmarshal() .jaxb("generated") + .bean(new DAO(), "getId") .to("activemq:queue:test") .to("log:?level=INFO&showBody=true"); @@ -126,7 +138,7 @@ public class Main { context.start(); ProducerTemplate template = context.createProducerTemplate(); - template.sendBody("direct:pretty", null); + template.sendBody("direct:test", null); Thread.sleep(1000); //template.setDefaultEndpointUri("activemq:queue:material"); diff --git a/target/classes/META-INF/JAXB/episode_default-cli.xjb b/target/classes/META-INF/JAXB/episode_default-cli.xjb new file mode 100644 index 0000000..524a264 --- /dev/null +++ b/target/classes/META-INF/JAXB/episode_default-cli.xjb @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + diff --git a/target/classes/com/release11/DAO.class b/target/classes/com/release11/DAO.class index bbe88b69e94f3b0e0b8b8d9cc133a5338da71614..4ffb0cd3be68ae9f49e454c1b405fc6f635ea6f4 100644 GIT binary patch literal 7575 zcma)B349dSdH;W_m1eaXT`RyW7+csJk`Uft0&ye^1|*DZ9T>^N7zY^b4$_*{?s{hg z$Y&hmIL3~NllV>==c?0^Ha2b+1gYb;aT_~F+r&+eG;Y)Mq(|B$Zdx}n{l7U@vqA*x z2cwzyzW2TF{D0qjdhP8~F9En(o{S=d3JqZ$m8cRl+-e*!5*Z^qniv?l)lAxgs&(mX z+FmcHXlWgeB7$lSQ5`kV1&ztvc%ootOv5r)tx9xl91zrw8~LGJpJAJYw2=|4Zs~QH zPT1*8qBou0Z>F{y)>xmB?`-WYU+*vKRNK_)s7HgK+Dd0fGv-Zwy@K|Z^Q~xgH*q8% zvCW7q_(bo?TYEm$V3}>3OQ^O^Kd8205EYM1+gs=9{WZtYs zGZt&OOvmL|Qs$4rNy|3J>4w|{y)xHjo6aS+QCXWRo5ncpwg}5~EJur=jzV;qR?cO}p+}6Bh`#@haV`D!Z-MnLK z_xA4QaW8`Rq*KjTH?LCO->72~Hd83e_ivd{ZpL)B4r}P9yydaI&1D`%7b+syDhQ=h zQCx@XHT3G}LqBbNo;;z?=^4SYpauNR0;cwcG;CvLPDfo&);34YLKFkou452Gf(UIo zY-A=F`poJcCDgEv9k@wZiK#$qgwb8 zRotN4$VQN3OivKJ_T={M87D?f6ig+^Z8{2yE=IZ=%cmotovTynaWiW%X%zJV9S0S) zPU#56y+T{?o^aY!9eC!6U^?`aSz^4!+SBtylHSf=fR?76JI`n`!pQZ zaX&stF2QK9C{~4$qF-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WIN9A$Eeg-Dzp=tmC diff --git a/target/classes/com/release11/Main$1.class b/target/classes/com/release11/Main$1.class index d2bd461d87f05cd387c7df023a46c8c6ce7bd83b..3d786d542f23353963fcc6a731eb4f34098d3c19 100644 GIT binary patch delta 375 zcmYLD-77?#0{xaZsg9{oK`avMwqer80OoL`Tig5 zW-Cg&cHv$rH;NmVQi{CJl;2zL^ZcIo<9Q$JKI)ab@9SFt9k|RXJc*< z(v3ja3dY*S6Ez9LStYJK4|E_hY8M@gd$n3V#hG|jjovh0p@TR8r&a*vm`GUTTxN@H zSZA)58nA&3{|K90mB7PPgab08BvR$i+704^1th!+c_fQy_D1q(`Nbi|f&bNM_(ZZ| zYUB+wc*iWhFh_)hZPid(_h;qCC$_N7mNj_64tCjgk56#0vd>vCmvD$9Tg&1E=eCl? L1*5`UK1O~&_KHx> delta 272 zcmew^e@Bk%)W2Q(7#J9A8K!RJD&*$iVyIy-WoM|Jyq?=&vNg{&#;(aiyw1}7j0{4_ z`MLTm^)XCfm<$%_W0(S@xqzw^fiw^R0M-~dC;$Ke diff --git a/target/classes/com/release11/Main.class b/target/classes/com/release11/Main.class index 1942bd636c328ca565d22c6c6f347b88e11b1342..a5ecd53bff4a0c7d2b7c5f25c5eb09010d822bdc 100644 GIT binary patch delta 33 pcmZ1~v{Y!r6b{h_hBAgmhI)o3hE9fNhJJ=NhG`7#lUH)o006D73Pu0` delta 33 pcmZ1~v{Y!r6b{jPhBAf*hI)oZhE9eihJJ=thG`6KlUH)o006C23P1n= diff --git a/target/classes/generated/MaterialType.class b/target/classes/generated/MaterialType.class new file mode 100644 index 0000000000000000000000000000000000000000..06732de263daf59a61c4d42564f9886393f37f1f GIT binary patch literal 2554 zcmah~ZBrXn6n-uVgpd#*rM#53Sg{g@fbo?=n&)wZL%d&wF`*QDj&NIe+2DpNUY07v0T%_5%HEI-$&VoAeQkLr zjZ1h|V7P5mzc%X9rZ8UYj-widlCqtZ1fCN(<0f=B*DcF`^`q-K$*3I@zh$l*=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S8rw96f zz`)4B*s)Mwh=QpHIQBgveW80_2gQ&7{Ph?!h15fw{GEq_ss_DEU;*9Ca}bNH?*bCY zKF_0@JyK;JvH}^E2T|y$|3)|-lS9YP>55_lC*slHAPT`Ig1JJd2`yI$ zH+h{3ktVNcL2DwOE9gyh=L&Id_438NKEAlwpX>avI_hZnPX1JZ1K&NS3v)hbo_>fk z_YqX^Y{<+is3~|ZY@Syzrr^gB^P+;=6}+UGmlcdFcttm_D%h>yay(*QQ@B^*PvV;S zslt5buI^IJt@GrY<*%SZ( literal 0 HcmV?d00001 diff --git a/target/classes/generated/ObjectFactory.class b/target/classes/generated/ObjectFactory.class new file mode 100644 index 0000000000000000000000000000000000000000..2abb3b16770de756af368b0c1cee09771e4380f6 GIT binary patch literal 1388 zcmbVMTTc@~6#k~Pv|S5@DtA%A3oR(Cph!|AK`sxbAh$H|M5fE64(?9L?v}v6^77C` z5`Ta{%6MjXDWzH-?8EfTne%<;n{&?Wuirm@0(gf-12J?Z5ziojZic=Se#T9ktE&02 zaw06Bp?gUx=`S;MPl|!Uz`d9NlkT!q5nEyn_HiGmCg)( z*2^%eGn|{}j%`+?IyOJ79K2t*g(H-oMj!f<$YpRB_ZWt*Swbxv-12Mg1w;1eD(}(G z*2?BO!&vE>R&hsor`!_e&K8+P13ehj_Zwo^&EFCj9EF!(wYldNZ*zo_in=5t3?m)W zr!dBV6vi1+PE;)e!+59_Jz|&&6@_W{d{?S!Yu?CHC^N)YYsZ2vUy@2})t!oP_j$!8 zPp(w6xLxMd2--)^xc^CdB&^h-ibcX%t{_EMwbVVN{^ScSkk&Io^n{40sSE=*f+IJ@ z_1cT}y1pprbbi zepU|`P0H=bc12ZszI#!`1ihmeJ#T8Jeo15{$foyA>jdrQ>7Qm2iRlK|S2ALlq*Z?k zfIQ+T;4xX5FbGfZly(fyFh#2-n4?Hdkh(#NblcV)HY=;^~22K02U5v}>DS=&;+R*qO0!cm4&(i0e1 zc~5gY^j)tqt(}fr7}id?Cb?GcUsp0{`bsM&EsSWT*Kupg3*5S=XFsuUTF+)36_kCq z5prH&_*T;k>9+0$?p9UJdtN=1S_%Ztw*o)1AJwY%mg_mT+*9q1T6M9ixP3S+koIJa zN6zk^Z&RPWKR(u`*E*NLAz$q@U0*p}ymKLt*WjD=`v?JKQI~;(98&jWtOq zeFgQhtgcI59_@HC9d5g%99-$ReIj*NR9GSfvsI!ML{_?38e6CNP*$7VHbv=++5IEL-kG>&Si23s-dOb=Efaj}ibc<~&)^&Rz$pL~JL`_THo z2Har4o2?y=MqY7vjW*Rn61Zdp$t6KHj38f{L2^ludjydOfLu0$6p|p@Mv$+}AcZ7I zgCIKxfP9T_45=A>nn=xWMv!muT}NsrUSKc@@;gEP_$Y|3J%KAmkYh=ZKaC*MW{_h^ zkiQ7>_yCX@Bgly)$P**TtQq7)669}!ygC46&IocU3G&7W^1T`4R1)Mrg8aWPND4o+ tiebL>Cz@n$U1hqa6s}% literal 0 HcmV?d00001 diff --git a/target/generated-sources/jaxb/META-INF/JAXB/episode_default-cli.xjb b/target/generated-sources/jaxb/META-INF/JAXB/episode_default-cli.xjb new file mode 100644 index 0000000..524a264 --- /dev/null +++ b/target/generated-sources/jaxb/META-INF/JAXB/episode_default-cli.xjb @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + diff --git a/target/generated-sources/jaxb/generated/MaterialType.java b/target/generated-sources/jaxb/generated/MaterialType.java new file mode 100644 index 0000000..0ff980a --- /dev/null +++ b/target/generated-sources/jaxb/generated/MaterialType.java @@ -0,0 +1,221 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.11.17 at 01:26:11 PM CET +// + + +package generated; + +import java.util.ArrayList; +import java.util.List; +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; + + +/** + *

Java class for materialType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="materialType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="material_number" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="material_type" type="{}material_typeType"/>
+ *         <element name="material_name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="is_deleted" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="packages" type="{}package" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "materialType", propOrder = { + "id", + "materialNumber", + "materialType", + "materialName", + "description", + "isDeleted", + "packages" +}) +public class MaterialType { + + protected int id; + @XmlElement(name = "material_number") + protected int materialNumber; + @XmlElement(name = "material_type", required = true) + @XmlSchemaType(name = "string") + protected MaterialTypeType materialType; + @XmlElement(name = "material_name", required = true) + protected String materialName; + @XmlElement(required = true) + protected String description; + @XmlElement(name = "is_deleted") + protected boolean isDeleted; + @XmlElement(required = true) + protected List packages; + + /** + * Gets the value of the id property. + * + */ + public int getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(int value) { + this.id = value; + } + + /** + * Gets the value of the materialNumber property. + * + */ + public int getMaterialNumber() { + return materialNumber; + } + + /** + * Sets the value of the materialNumber property. + * + */ + public void setMaterialNumber(int value) { + this.materialNumber = value; + } + + /** + * Gets the value of the materialType property. + * + * @return + * possible object is + * {@link MaterialTypeType } + * + */ + public MaterialTypeType getMaterialType() { + return materialType; + } + + /** + * Sets the value of the materialType property. + * + * @param value + * allowed object is + * {@link MaterialTypeType } + * + */ + public void setMaterialType(MaterialTypeType value) { + this.materialType = value; + } + + /** + * Gets the value of the materialName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMaterialName() { + return materialName; + } + + /** + * Sets the value of the materialName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMaterialName(String value) { + this.materialName = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the isDeleted property. + * + */ + public boolean isIsDeleted() { + return isDeleted; + } + + /** + * Sets the value of the isDeleted property. + * + */ + public void setIsDeleted(boolean value) { + this.isDeleted = value; + } + + /** + * Gets the value of the packages property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the packages property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPackages().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Package } + * + * + */ + public List getPackages() { + if (packages == null) { + packages = new ArrayList(); + } + return this.packages; + } + +} diff --git a/target/generated-sources/jaxb/generated/MaterialTypeType.java b/target/generated-sources/jaxb/generated/MaterialTypeType.java new file mode 100644 index 0000000..0213265 --- /dev/null +++ b/target/generated-sources/jaxb/generated/MaterialTypeType.java @@ -0,0 +1,79 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.11.17 at 01:26:11 PM CET +// + + +package generated; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for material_typeType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="material_typeType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="A1"/>
+ *     <enumeration value="A2"/>
+ *     <enumeration value="A3"/>
+ *     <enumeration value="B1"/>
+ *     <enumeration value="B2"/>
+ *     <enumeration value="B3"/>
+ *     <enumeration value="Z1"/>
+ *     <enumeration value="Z2"/>
+ *     <enumeration value="Z3"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "material_typeType") +@XmlEnum +public enum MaterialTypeType { + + @XmlEnumValue("A1") + A_1("A1"), + @XmlEnumValue("A2") + A_2("A2"), + @XmlEnumValue("A3") + A_3("A3"), + @XmlEnumValue("B1") + B_1("B1"), + @XmlEnumValue("B2") + B_2("B2"), + @XmlEnumValue("B3") + B_3("B3"), + @XmlEnumValue("Z1") + Z_1("Z1"), + @XmlEnumValue("Z2") + Z_2("Z2"), + @XmlEnumValue("Z3") + Z_3("Z3"); + private final String value; + + MaterialTypeType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static MaterialTypeType fromValue(String v) { + for (MaterialTypeType c: MaterialTypeType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/target/generated-sources/jaxb/generated/ObjectFactory.java b/target/generated-sources/jaxb/generated/ObjectFactory.java new file mode 100644 index 0000000..a84e500 --- /dev/null +++ b/target/generated-sources/jaxb/generated/ObjectFactory.java @@ -0,0 +1,72 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.11.17 at 01:26:11 PM CET +// + + +package generated; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the generated package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Material_QNAME = new QName("", "material"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: generated + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link MaterialType } + * + */ + public MaterialType createMaterialType() { + return new MaterialType(); + } + + /** + * Create an instance of {@link Package } + * + */ + public Package createPackage() { + return new Package(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MaterialType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link MaterialType }{@code >} + */ + @XmlElementDecl(namespace = "", name = "material") + public JAXBElement createMaterial(MaterialType value) { + return new JAXBElement(_Material_QNAME, MaterialType.class, null, value); + } + +} diff --git a/target/generated-sources/jaxb/generated/Package.java b/target/generated-sources/jaxb/generated/Package.java new file mode 100644 index 0000000..af5a883 --- /dev/null +++ b/target/generated-sources/jaxb/generated/Package.java @@ -0,0 +1,211 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.11.17 at 01:26:11 PM CET +// + + +package generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for package complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="package">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="material_id" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="package_number" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="ean" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="unit_of_measure" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="dimension" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "package", propOrder = { + "id", + "materialId", + "packageNumber", + "ean", + "unitOfMeasure", + "dimension", + "description" +}) +public class Package { + + protected int id; + @XmlElement(name = "material_id") + protected int materialId; + @XmlElement(name = "package_number") + protected int packageNumber; + @XmlElement(required = true) + protected String ean; + @XmlElement(name = "unit_of_measure", required = true) + protected String unitOfMeasure; + @XmlElement(required = true) + protected String dimension; + protected String description; + + /** + * Gets the value of the id property. + * + */ + public int getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(int value) { + this.id = value; + } + + /** + * Gets the value of the materialId property. + * + */ + public int getMaterialId() { + return materialId; + } + + /** + * Sets the value of the materialId property. + * + */ + public void setMaterialId(int value) { + this.materialId = value; + } + + /** + * Gets the value of the packageNumber property. + * + */ + public int getPackageNumber() { + return packageNumber; + } + + /** + * Sets the value of the packageNumber property. + * + */ + public void setPackageNumber(int value) { + this.packageNumber = value; + } + + /** + * Gets the value of the ean property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEan() { + return ean; + } + + /** + * Sets the value of the ean property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEan(String value) { + this.ean = value; + } + + /** + * Gets the value of the unitOfMeasure property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUnitOfMeasure() { + return unitOfMeasure; + } + + /** + * Sets the value of the unitOfMeasure property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUnitOfMeasure(String value) { + this.unitOfMeasure = value; + } + + /** + * Gets the value of the dimension property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDimension() { + return dimension; + } + + /** + * Sets the value of the dimension property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDimension(String value) { + this.dimension = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + +} diff --git a/target/jaxb2/.default-cli-xjcStaleFlag b/target/jaxb2/.default-cli-xjcStaleFlag new file mode 100644 index 0000000..e69de29