THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
import org.apache.camel.dataformat.bindy.annotation.CsvRecord; import org.apache.camel.dataformat.bindy.annotation.DataField; @CsvRecord(separator =",") public class Incident implements Serializable{ @DataField(pos = 0) private String incidentRef; @DataField(pos = 1, pattern = "dd-mm-yyyy") private Date incidentDate; @DataField(pos = 2) private String givenName; @DataField(pos = 3) private String familyName; @DataField(pos = 4) private String summary; @DataField(pos = 5) private String details; @DataField(pos = 6) private String email; @DataField(pos = 7) private String phone; ... } |
To build the project, simply execute the following maven command in the reportincident.model project
Code Block |
---|
mvn clean install
|
Step 4 : Map model layer with DB (Hibernate)
...