l ๐Ÿค– ์ฝ”๋“œ l

๊ธฐ์ƒ์ฒญ ๋‚ ์”จ api ๋ฐ›์•„์™€์„œ db์— ์ €์žฅํ•˜๊ธฐ (DTO)

์ฝ”๋“œ๊ทธ๋ฆผ 2020. 5. 21.
๋ฐ˜์‘ํ˜•

์ €๋Š” dbํ…Œ์ด๋ธ”์— seq๋กœ row๋„˜๋ฒ„ ๋ฐ›๊ณ 

inserttime์—๋Š” ์ธ์„œํŠธ ํ•˜๋Š” ์‹œ๊ฐ„์„ date๋กœ ๋ฐ›์•˜์–ด์š”.

 

//ํ”„๋กœ์ ํŠธ ํ†ต์œผ๋กœ ์˜ฌ๋ ค๋‘” ๊นƒํ—ˆ๋ธŒ ์ฃผ์†Œ์ž…๋‹ˆ๋‹ค.

๋‹ค๋ฅธ ๋‚ด์šฉ์ด ๊ถ๊ธˆํ•˜์‹œ๋‹ค๋ฉด ํ™•์ธ ํ•ด ์ฃผ์„ธ์š”.

github.com/Joowon0220/weather.git

 

package com.weather03.mvc;

import java.sql.Date;

public class VillageWeather {
	
	int seq;
	Date insertime; 
	String baseDate;
	String baseTime;
	String t3h;
	String reh;
	
	
	
	public VillageWeather() {
	}
	
	
	public VillageWeather(int seq, Date insertime, String baseDate, String baseTime, String t3h, String reh) {
		super();
		this.seq = seq;
		this.insertime = insertime;
		this.baseDate = baseDate;
		this.baseTime = baseTime;
		this.t3h = t3h;
		this.reh = reh;
	}


	public int getSeq() {
		return seq;
	}
	public void setSeq(int seq) {
		this.seq = seq;
	}
	public Date getInsertime() {
		return insertime;
	}
	public void setInsertime(Date insertime) {
		this.insertime = insertime;
	}
	public String getBaseDate() {
		return baseDate;
	}
	public void setBaseDate(String baseDate) {
		this.baseDate = baseDate;
	}
	public String getBaseTime() {
		return baseTime;
	}
	public void setBaseTime(String baseTime) {
		this.baseTime = baseTime;
	}
	public String getT3h() {
		return t3h;
	}
	public void setT3h(String t3h) {
		this.t3h = t3h;
	}
	public String getReh() {
		return reh;
	}
	public void setReh(String reh) {
		this.reh = reh;
	}
	
	
	
	
	
	
	

}
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€

๐Ÿ’ฒ ์ถ”์ฒœ ๊ธ€