Revision: 3848
Updated Code
at September 24, 2007 14:49 by thebugslayer
Updated Code
package deng.myhibernatejpa; import javax.persistence.*; @Entity @Table(name="category") public class Category { @Id @GeneratedValue @Column(name="id") private Short id; @Column(name="name") private String name; public Short getId() { return id; } public void setId(Short id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
Revision: 3847
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 23, 2007 20:37 by thebugslayer
Initial Code
import javax.persistence.*; @Entity @Table(name="category") public class Category { @Id @GeneratedValue @Column(name="id") private Short id; @Column(name="name") private String name; public Short getId() { return id; } public void setId(Short id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
Initial URL
Initial Description
Initial Title
JPA Annotated/Persistent Class
Initial Tags
java
Initial Language
Java