/* * Copyright (C) 2013 AXIA Studio (http://www.axiastudio.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package com.axiastudio.suite.protocollo.entities; import javax.persistence.*; import java.io.Serializable; /** * * @author Tiziano Lattisi <tiziano at axiastudio.it> */ @Entity @Table(schema="PROTOCOLLO") @SequenceGenerator(name="genmailbox", sequenceName="protocollo.mailbox_id_seq", initialValue=1, allocationSize=1) public class Mailbox implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator="genutente") private Long id; @Column(name="descrizione") private String descrizione; @Column(name="host") private String host; @Column(name="username") private String username; @Column(name="password") private String password; @Column(name="inbox") private String inbox; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getDescrizione() { return descrizione; } public void setDescrizione(String descrizione) { this.descrizione = descrizione; } public String getHost() { return host; } public void setHost(String host) { this.host = host; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getInbox() { return inbox; } public void setInbox(String inbox) { this.inbox = inbox; } }