Crear un Entidad

Convertir nuestro modelo en un Entidad – Entity

package com.oregoom.web.app.personal.models.entity;
import java.io.Serializable;
import javax.persistence.*;
@Entity
@Table(name = "projects")
public class Project implements Serializable{ 
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id_project")
    private Integer idProject;
    
    
    private String title;
    private String description;
    private String url;
    
    private static final long serialVersionUID = 1L;
    
    
    public Project() {
        
    }
    public Project(String title, String description) {
        this.title = title;
        this.description = description;
    }
    
    public Project(String title, String description, String url) {
        this.title = title;
        this.description = description;
        this.url = url;
    }
    public Integer getIdProject() {
        return idProject;
    }
    public void setIdProject(Integer idProject) {
        this.idProject = idProject;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getUrl() {
        return url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    public static long getSerialversionuid() {
        return serialVersionUID;
    }
    
}