Mercurial > hg > LGServer
view src/main/java/de/mpiwg/gazetteer/bo/SearchRulesFile.java @ 0:7682c04c63a8
First commit of the source code!
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Tue, 10 Mar 2015 14:50:41 +0100 |
parents | |
children |
line wrap: on
line source
package de.mpiwg.gazetteer.bo; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Inheritance; import javax.persistence.InheritanceType; import javax.persistence.Table; import cl.maps.duplex.DuplexKey; @Entity @Table(name="SearchRulesFile.java") @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) public class SearchRulesFile extends DBEntry implements Cloneable, Serializable { private static final long serialVersionUID = -3717062037374537162L; @Column(name="fileName") private String fileName; @Column(name="description") private String description; @Column(name="content") private String content; @Column(name="userId") private Long userId; public String getContent() { return content; } public void setContent(String content) { this.content = content; } public String getFileName() { return fileName; } public void setFileName(String fileName) { this.fileName = fileName; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Long getUserId() { return userId; } public void setUserId(Long userId) { this.userId = userId; } public DuplexKey<Long, Long> getKey(){ return new DuplexKey<Long, Long>(this.userId, this.id); } }