Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- @Table(name="content_type")
- public class Type {
- @Id
- @Column(name="type_id")
- @GeneratedValue(strategy=GenerationType.AUTO)
- private int type_id;
- @Column(name="type")
- private String type;
- protected Type() {
- }
- public Type(int id, String t) {
- this.type_id = id;
- this.type = t;
- }
- public int getId() {
- return this.type_id;
- }
- public String getType() {
- return this.type;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement