41 lines
677 B
Java
41 lines
677 B
Java
|
|
package com.baeldung.acticle;
|
||
|
|
|
||
|
|
import javax.persistence.Entity;
|
||
|
|
import javax.persistence.GeneratedValue;
|
||
|
|
import javax.persistence.Id;
|
||
|
|
|
||
|
|
@Entity
|
||
|
|
public final class Article {
|
||
|
|
|
||
|
|
@Id
|
||
|
|
@GeneratedValue
|
||
|
|
private Long id;
|
||
|
|
private String title;
|
||
|
|
private String content;
|
||
|
|
|
||
|
|
public Long getId() {
|
||
|
|
return id;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId(Long id) {
|
||
|
|
this.id = id;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getTitle() {
|
||
|
|
return title;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTitle(String title) {
|
||
|
|
this.title = title;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getContent() {
|
||
|
|
return content;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setContent(String content) {
|
||
|
|
this.content = content;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|