Created
August 4, 2015 13:24
-
-
Save yusufcakmak/d78ee0ba40279fdcfeb2 to your computer and use it in GitHub Desktop.
HibernateCRUDExample
This file contains hidden or 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.annotation.Generated; | |
| import javax.persistence.*; | |
| /** | |
| * Created by yusufcakmak on 8/4/15. | |
| */ | |
| @Entity | |
| @Table(name="book") | |
| public class Book { | |
| @Id | |
| @GeneratedValue | |
| @Column(name="id") | |
| private int id; | |
| @Column(name="bookName") | |
| private String bookName; | |
| @Column(name="bookDesc") | |
| private String bookDesc; | |
| 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; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment