Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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)

...