package fi.otavanopisto.pyramus.domainmodel.accesslog; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Lob; import javax.persistence.TableGenerator; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.NotEmpty; @Entity public class AccessLogEntryPath { public Long getId() { return id; } public String getPath() { return path; } public void setPath(String path) { this.path = path; } public Boolean getActive() { return active; } public void setActive(Boolean active) { this.active = active; } @Id @GeneratedValue(strategy=GenerationType.TABLE, generator="AccessLogEntryPath") @TableGenerator(name="AccessLogEntryPath", allocationSize=1, table = "hibernate_sequences", pkColumnName = "sequence_name", valueColumnName = "sequence_next_hi_value") private Long id; @NotNull @Column (nullable = false) @NotEmpty @Lob private String path; @NotNull @Column(nullable = false) private Boolean active; }