use of org.apache.camel.dataformat.bindy.model.complex.twoclassesandonelink.Security in project camel by apache.
the class BindyComplexCsvMarshallTest method generateModel.
private List<Map<String, Object>> generateModel() {
Map<String, Object> model = new HashMap<String, Object>();
Order order = new Order();
order.setOrderNr(10);
order.setAmount(new BigDecimal("150"));
order.setOrderType("BUY");
order.setInstrumentType("Share");
order.setCurrency("USD");
Calendar calendar = new GregorianCalendar();
calendar.set(2009, 0, 14);
order.setOrderDate(calendar.getTime());
Client client = new Client();
client.setClientNr("A1");
client.setFirstName("Julia");
client.setLastName("Roberts");
order.setClient(client);
Security security = new Security();
security.setInstrumentCode("ISIN");
security.setInstrumentNumber("LU123456789");
order.setSecurity(security);
model.put(order.getClass().getName(), order);
model.put(client.getClass().getName(), client);
model.put(security.getClass().getName(), security);
models.add(0, model);
return models;
}
Aggregations