Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 703 Bytes

File metadata and controls

40 lines (31 loc) · 703 Bytes
package com.thucnh.googlesheetssdk.example;

import com.thucnh.googlesheetssdk.mapping.SheetColumn;
import com.thucnh.googlesheetssdk.mapping.SheetEntity;

/**
* Example entity class for mapping to a Google Sheet.
  */
  @SheetEntity(name = "Users")
  public class UserSheet {

  @SheetColumn(name = "A")
  private String name;

  @SheetColumn(index = 1)
  private int age;

  public String getName() {
  return name;
  }

  public void setName(String name) {
  this.name = name;
  }

  public int getAge() {
  return age;
  }

  public void setAge(int age) {
  this.age = age;
  }

  @Override
  public String toString() {
  return "UserSheet{name='" + name + "', age=" + age + "}";
  }
  }