diff --git a/pom.xml b/pom.xml index a9d7c74..ed4914a 100644 --- a/pom.xml +++ b/pom.xml @@ -9,6 +9,7 @@ 1.0-SNAPSHOT + 17 17 17 @@ -107,7 +108,14 @@ ${basedir}/src/main/resources/material.xsd - + + + org.apache.maven.plugins + maven-compiler-plugin + + 7 + + diff --git a/src/main/java/com/release11/DAO.java b/src/main/java/com/release11/DAO.java index da807bd..e013458 100644 --- a/src/main/java/com/release11/DAO.java +++ b/src/main/java/com/release11/DAO.java @@ -28,13 +28,10 @@ public class DAO { } - - - public void getId(Exchange exchange) throws InterruptedException { MaterialType tmp = (MaterialType) exchange.getIn().getBody(); - System.out.println(tmp.getDescription()+tmp.getMaterialName()); + System.out.println(tmp.getDescription() + tmp.getMaterialName()); Thread.sleep(10000); exchange.getIn().setBody("SELECT * FROM package WHERE material_id = 1"); } @@ -43,26 +40,20 @@ public class DAO { HashMap map = (HashMap) exchange.getIn().getBody(); MaterialType materialType = new MaterialType(); - materialType.setMaterialType(map.get("")); + materialType.setId((Integer) map.get("id")); + materialType.setMaterialNumber((String) map.get("number")); + materialType.getMaterialType(); + materialType.setMaterialName(); + materialType.setDescription(); + materialType.setIsDeleted(); - System.out.println(tmp.getDescription()+tmp.getMaterialName()); + + // 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/resources/material.xsd b/src/main/resources/material.xsd index 9bedbd1..51c9599 100644 --- a/src/main/resources/material.xsd +++ b/src/main/resources/material.xsd @@ -30,7 +30,7 @@ - + diff --git a/target/classes/META-INF/JAXB/episode_default-cli.xjb b/target/classes/META-INF/JAXB/episode_default-cli.xjb deleted file mode 100644 index 524a264..0000000 --- a/target/classes/META-INF/JAXB/episode_default-cli.xjb +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/target/classes/com/release11/DAO.class b/target/classes/com/release11/DAO.class deleted file mode 100644 index 4ffb0cd..0000000 Binary files a/target/classes/com/release11/DAO.class and /dev/null differ diff --git a/target/classes/com/release11/Main$1.class b/target/classes/com/release11/Main$1.class deleted file mode 100644 index 3d786d5..0000000 Binary files a/target/classes/com/release11/Main$1.class and /dev/null differ diff --git a/target/classes/com/release11/Main.class b/target/classes/com/release11/Main.class deleted file mode 100644 index a5ecd53..0000000 Binary files a/target/classes/com/release11/Main.class and /dev/null differ diff --git a/target/classes/com/release11/Material$enumType.class b/target/classes/com/release11/Material$enumType.class deleted file mode 100644 index 08025ec..0000000 Binary files a/target/classes/com/release11/Material$enumType.class and /dev/null differ diff --git a/target/classes/com/release11/Material.class b/target/classes/com/release11/Material.class deleted file mode 100644 index 1842a63..0000000 Binary files a/target/classes/com/release11/Material.class and /dev/null differ diff --git a/target/classes/com/release11/MyAggregator.class b/target/classes/com/release11/MyAggregator.class deleted file mode 100644 index 4375f34..0000000 Binary files a/target/classes/com/release11/MyAggregator.class and /dev/null differ diff --git a/target/classes/com/release11/MyBuilder$enumType.class b/target/classes/com/release11/MyBuilder$enumType.class deleted file mode 100644 index 2e2e438..0000000 Binary files a/target/classes/com/release11/MyBuilder$enumType.class and /dev/null differ diff --git a/target/classes/com/release11/MyBuilder.class b/target/classes/com/release11/MyBuilder.class deleted file mode 100644 index b7f2779..0000000 Binary files a/target/classes/com/release11/MyBuilder.class and /dev/null differ diff --git a/target/classes/com/release11/Package.class b/target/classes/com/release11/Package.class deleted file mode 100644 index df3b051..0000000 Binary files a/target/classes/com/release11/Package.class and /dev/null differ diff --git a/target/classes/generated/MaterialType.class b/target/classes/generated/MaterialType.class deleted file mode 100644 index 06732de..0000000 Binary files a/target/classes/generated/MaterialType.class and /dev/null differ diff --git a/target/classes/generated/MaterialTypeType.class b/target/classes/generated/MaterialTypeType.class deleted file mode 100644 index f239fbe..0000000 Binary files a/target/classes/generated/MaterialTypeType.class and /dev/null differ diff --git a/target/classes/generated/ObjectFactory.class b/target/classes/generated/ObjectFactory.class deleted file mode 100644 index 2abb3b1..0000000 Binary files a/target/classes/generated/ObjectFactory.class and /dev/null differ diff --git a/target/classes/generated/Package.class b/target/classes/generated/Package.class deleted file mode 100644 index d8a5673..0000000 Binary files a/target/classes/generated/Package.class and /dev/null differ diff --git a/target/classes/material.xml b/target/classes/material.xml deleted file mode 100644 index 53dcc6a..0000000 --- a/target/classes/material.xml +++ /dev/null @@ -1,20 +0,0 @@ - - 7 - A1 - LEGO 17272 - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - false - - 11988 - 80975098498590834 - pcs - 17x17x17 - Lorem ipsum dolor sit amet, consectetur adipiscing elit - - - 118 - 877854875843774 - pcs - 20x20x20 - - diff --git a/target/classes/material.xsd b/target/classes/material.xsd deleted file mode 100644 index 9bedbd1..0000000 --- a/target/classes/material.xsd +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/target/classes/test.xml b/target/classes/test.xml deleted file mode 100644 index fddd6c3..0000000 --- a/target/classes/test.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - number8186 - Z3 - name2686 - description7225 - true - - number2274 - 5903339152912 - unit1350 - 18x30x18 - description7460 - - 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 index 524a264..a7ebab6 100644 --- a/target/generated-sources/jaxb/META-INF/JAXB/episode_default-cli.xjb +++ b/target/generated-sources/jaxb/META-INF/JAXB/episode_default-cli.xjb @@ -5,7 +5,7 @@ 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 +Generated on: 2021.11.18 at 12:37:46 PM CET --> diff --git a/target/generated-sources/jaxb/generated/MaterialType.java b/target/generated-sources/jaxb/generated/MaterialType.java index 0ff980a..7079ae7 100644 --- a/target/generated-sources/jaxb/generated/MaterialType.java +++ b/target/generated-sources/jaxb/generated/MaterialType.java @@ -2,7 +2,7 @@ // 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 +// Generated on: 2021.11.18 at 12:37:46 PM CET // @@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlType; * <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_number" type="{http://www.w3.org/2001/XMLSchema}string"/> * <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"/> @@ -55,8 +55,8 @@ import javax.xml.bind.annotation.XmlType; public class MaterialType { protected int id; - @XmlElement(name = "material_number") - protected int materialNumber; + @XmlElement(name = "material_number", required = true) + protected String materialNumber; @XmlElement(name = "material_type", required = true) @XmlSchemaType(name = "string") protected MaterialTypeType materialType; @@ -71,7 +71,7 @@ public class MaterialType { /** * Gets the value of the id property. - * + * */ public int getId() { return id; @@ -79,7 +79,7 @@ public class MaterialType { /** * Sets the value of the id property. - * + * */ public void setId(int value) { this.id = value; @@ -87,27 +87,35 @@ public class MaterialType { /** * Gets the value of the materialNumber property. - * + * + * @return + * possible object is + * {@link String } + * */ - public int getMaterialNumber() { + public String getMaterialNumber() { return materialNumber; } /** * Sets the value of the materialNumber property. - * + * + * @param value + * allowed object is + * {@link String } + * */ - public void setMaterialNumber(int value) { + public void setMaterialNumber(String value) { this.materialNumber = value; } /** * Gets the value of the materialType property. - * + * * @return * possible object is * {@link MaterialTypeType } - * + * */ public MaterialTypeType getMaterialType() { return materialType; @@ -115,11 +123,11 @@ public class MaterialType { /** * Sets the value of the materialType property. - * + * * @param value * allowed object is * {@link MaterialTypeType } - * + * */ public void setMaterialType(MaterialTypeType value) { this.materialType = value; @@ -127,11 +135,11 @@ public class MaterialType { /** * Gets the value of the materialName property. - * + * * @return * possible object is * {@link String } - * + * */ public String getMaterialName() { return materialName; @@ -139,11 +147,11 @@ public class MaterialType { /** * Sets the value of the materialName property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setMaterialName(String value) { this.materialName = value; @@ -151,11 +159,11 @@ public class MaterialType { /** * Gets the value of the description property. - * + * * @return * possible object is * {@link String } - * + * */ public String getDescription() { return description; @@ -163,11 +171,11 @@ public class MaterialType { /** * Sets the value of the description property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setDescription(String value) { this.description = value; @@ -175,7 +183,7 @@ public class MaterialType { /** * Gets the value of the isDeleted property. - * + * */ public boolean isIsDeleted() { return isDeleted; @@ -183,7 +191,7 @@ public class MaterialType { /** * Sets the value of the isDeleted property. - * + * */ public void setIsDeleted(boolean value) { this.isDeleted = value; @@ -191,25 +199,25 @@ public class MaterialType { /** * 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) { diff --git a/target/generated-sources/jaxb/generated/MaterialTypeType.java b/target/generated-sources/jaxb/generated/MaterialTypeType.java index 0213265..16d47f6 100644 --- a/target/generated-sources/jaxb/generated/MaterialTypeType.java +++ b/target/generated-sources/jaxb/generated/MaterialTypeType.java @@ -2,7 +2,7 @@ // 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 +// Generated on: 2021.11.18 at 12:37:46 PM CET // diff --git a/target/generated-sources/jaxb/generated/ObjectFactory.java b/target/generated-sources/jaxb/generated/ObjectFactory.java index a84e500..0710258 100644 --- a/target/generated-sources/jaxb/generated/ObjectFactory.java +++ b/target/generated-sources/jaxb/generated/ObjectFactory.java @@ -2,7 +2,7 @@ // 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 +// Generated on: 2021.11.18 at 12:37:46 PM CET // diff --git a/target/generated-sources/jaxb/generated/Package.java b/target/generated-sources/jaxb/generated/Package.java index af5a883..35db0f3 100644 --- a/target/generated-sources/jaxb/generated/Package.java +++ b/target/generated-sources/jaxb/generated/Package.java @@ -2,7 +2,7 @@ // 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 +// Generated on: 2021.11.18 at 12:37:46 PM CET //