Created
June 11, 2014 14:53
-
-
Save shigemk2/2a2f348933f6b36137b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models; | |
import java.util.Data; | |
import java.util.List; | |
import javax.persistence.*; | |
import javax.validation.*; | |
import play.db.ebean.*; | |
import play.data.validation.*; | |
// EJBに用意されているJava Persistence API (JPA)の機能。 | |
// データベースに保管されるデータはEntityとして扱われる。 | |
@Entity | |
public class Message extends Model { | |
// プライマリキー | |
@Id | |
public Long id; | |
public String name; | |
public String mail; | |
public String message; | |
public Date postdate; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment