package pl.edu.icm.saos.persistence.model; import javax.persistence.Cacheable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; import pl.edu.icm.saos.persistence.common.DataObject; /** * pl. Sąd administracyjny * <br/> <br/> * Dictionary of administrative courts * * @author Łukasz Dumiszewski */ @Entity @Cacheable(true) @SequenceGenerator(name = "seq_adm_court", allocationSize = 1, sequenceName = "seq_adm_court") public class AdministrativeCourt extends DataObject { private String name; //------------------------ GETTERS -------------------------- @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_adm_court") @Override public long getId() { return id; } public String getName() { return name; } //------------------------ SETTERS -------------------------- public void setName(String name) { this.name = name; } }