Skip to content

Instantly share code, notes, and snippets.

@yusufcakmak
Created August 4, 2015 13:24
Show Gist options
  • Select an option

  • Save yusufcakmak/d78ee0ba40279fdcfeb2 to your computer and use it in GitHub Desktop.

Select an option

Save yusufcakmak/d78ee0ba40279fdcfeb2 to your computer and use it in GitHub Desktop.
HibernateCRUDExample
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