1 /*** 2 * 3 */ 4 package hu.elte.tribus.util.idx; 5 6 import java.io.InputStream; 7 import java.util.Date; 8 9 import javax.persistence.Column; 10 import javax.persistence.Entity; 11 import javax.persistence.Id; 12 import javax.persistence.Lob; 13 14 /*** 15 * @author kocka 16 * 17 */ 18 @Entity(name="idxfile") 19 public class IndexFile { 20 @Id 21 @Column(name="idxfilename") 22 String name; 23 @Column(name="idxdata", nullable=false) 24 @Lob 25 InputStream idxData; 26 @Column(nullable=false) 27 Date lastModification; 28 public InputStream getIdxData() { 29 return idxData; 30 } 31 public void setIdxData(InputStream idxData) { 32 this.idxData = idxData; 33 } 34 public Date getLastModification() { 35 return lastModification; 36 } 37 public void setLastModification(Date lastModification) { 38 this.lastModification = lastModification; 39 } 40 public String getName() { 41 return name; 42 } 43 public void setName(String name) { 44 this.name = name; 45 } 46 }