package com.accenture.multibank.entities;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * @author manuel
 * @version 11/30/16
 */
@Entity
@Table(name = "account")
public class Account {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int accountNumber;

    @NotNull
    private int balance;

    public Account() {
    }

    public Account(int balance) {
        this.balance = balance;
    }

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }
}

@@ -293,21 +293,46 @@
 int 
-accountNumber
+ID;%0A%0A    private String ACCOUNT_NUMBER
 ;%0A%0A 
@@ -359,23 +359,23 @@
 ate int 
-balance
+BALANCE
 ;%0A%0A    p
@@ -422,53 +422,234 @@
 unt(
-int balance) %7B%0A        this.balance = balance
+String ACCOUNT_NUMBER, int BALANCE) %7B%0A        this.ACCOUNT_NUMBER = ACCOUNT_NUMBER;%0A        this.BALANCE = BALANCE;%0A    %7D%0A%0A    public int getID() %7B%0A        return ID;%0A    %7D%0A%0A    public void setID(int ID) %7B%0A        this.ID = ID
 ;%0A  
@@ -668,22 +668,32 @@
 lic 
+Str
 in
-t
+g
  get
-Balance
+ACCOUNT_NUMBER
 () %7B
@@ -708,23 +708,30 @@
  return 
-balance
+ACCOUNT_NUMBER
 ;%0A    %7D%0A
@@ -754,61 +754,234 @@
  set
-Balance(int balance) %7B%0A        this.balance = balance
+ACCOUNT_NUMBER(String ACCOUNT_NUMBER) %7B%0A        this.ACCOUNT_NUMBER = ACCOUNT_NUMBER;%0A    %7D%0A%0A    public int getBALANCE() %7B%0A        return BALANCE;%0A    %7D%0A%0A    public void setBALANCE(int BALANCE) %7B%0A        this.BALANCE = BALANCE
 ;%0A  

update because of schema change