daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.pig.database.databasedemo.entity;
  2.  
  3. import java.util.Date;
  4.  
  5. public class Person {
  6.     private int id;
  7.     private String name;
  8.     private String location;
  9.     private Date birthdate;
  10.     //弄個Constructor
  11.     public Person(int id, String name, String location, Date birthdate) {
  12.         super();
  13.         this.id = id;
  14.         this.name = name;
  15.         this.location = location;
  16.         this.birthdate = birthdate;
  17.     }
  18.     //全部的get setter
  19.     public int getId() {
  20.         return id;
  21.     }
  22.     public void setId(int id) {
  23.         this.id = id;
  24.     }
  25.     public String getName() {
  26.         return name;
  27.     }
  28.     public void setName(String name) {
  29.         this.name = name;
  30.     }
  31.     public String getLocation() {
  32.         return location;
  33.     }
  34.     public void setLocation(String location) {
  35.         this.location = location;
  36.     }
  37.     public Date getBirthdate() {
  38.         return birthdate;
  39.     }
  40.     public void setBirthdate(Date birthdate) {
  41.         this.birthdate = birthdate;
  42.     }
  43.    
  44.  
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top