Skip to content

Instantly share code, notes, and snippets.

@noriyukitakei
Created April 16, 2018 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noriyukitakei/5aa968ebd2694fea3b1ab7d2566a9112 to your computer and use it in GitHub Desktop.
Save noriyukitakei/5aa968ebd2694fea3b1ab7d2566a9112 to your computer and use it in GitHub Desktop.
Spring Web Flowによる今どきでないWebアプリケーション開発
package com.sios.flow;
import java.io.Serializable;
/**
* 掲示板のメッセージを格納するBean
* @author ntakei
*/
public class Message implements Serializable {
private static final long serialVersionUID = 1L;
private String title; // タイトル
private String body; // 本文
/**
* タイトルを取得するgetterメソッド
*/
public String getTitle() {
return title;
}
/**
* タイトルを設定するsetterメソッド
*/
public void setTitle(String title) {
this.title = title;
}
/**
* 本文を取得するgetterメソッド
*/
public String getBody() {
return body;
}
/**
* 本文を設定するsetterメソッド
*/
public void setBody(String body) {
this.body = body;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment