package com.springapp.batch.bo;

import lombok.Data;
import org.joda.time.DateTime;

/**
 * BO used to describe rows found insider the AddressBook
 */
@Data
public class BookEntry {

    private String name;
    private Gender sex;
    private DateTime dateOfBirth;

}

@@ -44,43 +44,201 @@
 bok.
-Data;%0Aimport org.joda.time.DateTime
+AllArgsConstructor;%0Aimport lombok.Data;%0Aimport lombok.NoArgsConstructor;%0Aimport org.joda.time.DateTime;%0Aimport org.joda.time.format.DateTimeFormat;%0Aimport org.joda.time.format.DateTimeFormatter
 ;%0A%0A/
@@ -308,16 +308,55 @@
 /%0A@Data%0A
+@NoArgsConstructor%0A@AllArgsConstructor%0A
 public c
@@ -457,10 +457,377 @@
 Birth;%0A%0A
+    public BookEntry(String name, String sex, String dateOfBirth) %7B%0A        this();%0A        setName(name);%0A        setSex(Gender.customValueOf(sex));%0A        DateTimeFormatter dateTimeFormatter = DateTimeFormat.forPattern(%22dd/MM/yy%22);%0A        DateTime parsedDateOfBirth = dateTimeFormatter.parseDateTime(dateOfBirth);%0A        setDateOfBirth(parsedDateOfBirth);%0A    %7D%0A
 %7D%0A

Add more types of constructors for BookEntry