package uk.gov.dvla.domain;

import org.mongodb.morphia.annotations.Embedded;

import java.lang.Integer;
import java.lang.Number;
import java.lang.String;
import java.util.Date;

@Embedded
public class DriverQualificationCard {
    private Number communityCode;
    private Number dispatchedToAddressID;
    private Integer photoImageID;
    private String reasonRequested;
    private Integer signatureImageID;
    private String driverNumber;
    private String firstName;
    private String surname;
    private Date dob;
    private String birthPlace;

    public Number getCommunityCode() {
        return communityCode;
    }

    public void setCommunityCode(Number communityCode) {
        this.communityCode = communityCode;
    }

    public Number getDispatchedToAddressID() { //TODO: Why is this a number, not an Integer?
        return dispatchedToAddressID;
    }

    public void setDispatchedToAddressID(Number dispatchedToAddressID) {
        this.dispatchedToAddressID = dispatchedToAddressID;
    }

    public Integer getPhotoImageID() {
        return photoImageID;
    }

    public void setPhotoImageID(Integer photoImageID) {
        this.photoImageID = photoImageID;
    }

    public String getReasonRequested() {
        return reasonRequested;
    }

    public void setReasonRequested(String reasonRequested) {
        this.reasonRequested = reasonRequested;
    }

    public Integer getSignatureImageID() {
        return signatureImageID;
    }

    public void setSignatureImageID(Integer signatureImageID) {
        this.signatureImageID = signatureImageID;
    }

    public String getDriverNumber() {
        return driverNumber;
    }

    public void setDriverNumber(String driverNumber) {
        this.driverNumber = driverNumber;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public Date getDob() {
        return dob;
    }

    public void setDob(Date dob) {
        this.dob = dob;
    }

    public String getBirthPlace() {
        return birthPlace;
    }

    public void setBirthPlace(String birthPlace) {
        this.birthPlace = birthPlace;
    }
}

@@ -233,20 +233,21 @@
 private 
-Numb
+Integ
 er commu
@@ -268,20 +268,21 @@
 private 
-Numb
+Integ
 er dispa
@@ -559,28 +559,29 @@
 %0A    public 
-Numb
+Integ
 er getCommun
@@ -662,20 +662,21 @@
 ityCode(
-Numb
+Integ
 er commu
@@ -917,20 +917,21 @@
 dressID(
-Numb
+Integ
 er dispa

Change data type of two fields in DriverQualificationCard from Number to Integer - it was preventing the load of the driver object from the database.