Last active
August 29, 2015 14:26
-
-
Save yusufcakmak/5e12a03571280ca13df3 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 co.mobiwise.hibernate.model; | |
import javax.persistence.*; | |
import java.util.Date; | |
/** | |
* Created by yusufcakmak on 8/3/15. | |
*/ | |
@Entity | |
@Table(name="book",uniqueConstraints={@UniqueConstraint(columnNames={"id"})}) | |
public class Book1 { | |
@Id | |
@GeneratedValue(strategy=GenerationType.IDENTITY) | |
@Column(name="id",nullable=false, unique=true, length=11) | |
private int id; | |
@Column(name="bookName",nullable=true) | |
private String bookName; | |
@Column(name="bookDesc",nullable=true) | |
private String bookDesc; | |
@Column(name="insert_time",nullable=true) | |
private Date insertTime; | |
public int getId() { | |
return id; | |
} | |
public void setId(int id) { | |
this.id = id; | |
} | |
public String getBookName() { | |
return bookName; | |
} | |
public void setBookName(String bookName) { | |
this.bookName = bookName; | |
} | |
public String getBookDesc() { | |
return bookDesc; | |
} | |
public void setBookDesc(String bookDesc) { | |
this.bookDesc = bookDesc; | |
} | |
public Date getInsertTime() { | |
return insertTime; | |
} | |
public void setInsertTime(Date insertTime) { | |
this.insertTime = insertTime; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment