package csjobs.model; import java.io.Serializable; import java.util.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; import javax.persistence.Table; @Entity @Table(name = "files") public class File implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id; private String name; private String type; private Long size; private Date date; @ManyToOne private User owner; public File() { } public Long getId() { return id; } public void setId( Long id ) { this.id = id; } public String getName() { return name; } public void setName( String name ) { this.name = name; } public String getType() { return type; } public void setType( String type ) { this.type = type; } public Long getSize() { return size; } public void setSize( Long size ) { this.size = size; } public Date getDate() { return date; } public void setDate( Date date ) { this.date = date; } public User getOwner() { return owner; } public void setOwner( User owner ) { this.owner = owner; } }