package com.bookbase.app.model.entity;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;

@Entity(tableName = "Author")
public class Author {

    @PrimaryKey(autoGenerate = true)
    private int authorId;

    @ColumnInfo(name = "name_first")
    private String firstName;


    public Author(){
    }

    public Author(String firstName){
        this.firstName = firstName;
    }

    public int getAuthorId(){ return authorId; }
    public String getFirstName(){ return firstName; }

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

    @Override
    public String toString() {
        return firstName;
    }
}

@@ -37,57 +37,8 @@
 y;%0A%0A
-import android.arch.persistence.room.ColumnInfo;%0A
 impo
@@ -249,45 +249,8 @@
 d;%0A%0A
-    @ColumnInfo(name = %22name_first%22)%0A
     
@@ -264,22 +264,17 @@
  String 
-firstN
+n
 ame;%0A%0A%0A 
@@ -317,38 +317,33 @@
 c Author(String 
-firstN
+n
 ame)%7B%0A        th
@@ -345,34 +345,24 @@
    this.
-firstName = firstN
+name = n
 ame;%0A   
@@ -435,21 +435,16 @@
 ring get
-First
 Name()%7B 
@@ -446,30 +446,25 @@
 e()%7B return 
-firstN
+n
 ame; %7D%0A%0A    
@@ -565,13 +565,8 @@
  set
-First
 Name
@@ -573,22 +573,17 @@
 (String 
-firstN
+n
 ame)%7B%0A  
@@ -597,26 +597,16 @@
 his.
-firstName = firstN
+name = n
 ame;
@@ -677,14 +677,9 @@
 urn 
-firstN
+n
 ame;
@@ -685,10 +685,15 @@
 ;%0A    %7D%0A
+    %0A
 %7D%0A

Clean up Author entity class