/** * Create an instance of {@link Shiporder } * */ public Shiporder createShiporder() { return new Shiporder(); }
@Override public Struct toConnectStruct() { Struct struct = new Struct(CONNECT_SCHEMA); struct.put("orderperson", this.getOrderperson()); if (null!= this.getShipto()) { struct.put("shipto", this.getShipto().toConnectStruct()); } else { struct.put("shipto", null); } if (null!= this.getItem()) { List<Struct> structs = new ArrayList(); for (Shiporder.Item o: this.getItem()) { structs.add(o.toConnectStruct()); } struct.put("item", structs); } struct.put("orderid", this.getOrderid()); return struct; }