/* * Copyright 2011 Future Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.krakenapps.ipmanager.model; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "ipm_ip_alloc_reqs") public class IpAllocationRequest { @Id @GeneratedValue(strategy = GenerationType.AUTO) private int id; @Column(length = 60, nullable = false) private String user; @Column(length = 20, nullable = false) private String title; @Column(length = 20, nullable = false) private String phone; @Column(length = 250, nullable = false) private String email; @Column(length = 60, nullable = false) private String ip; @Column(length = 20, nullable = false) private String mac; @Column(length = 60, nullable = false) private String purpose; @Column(length = 250, nullable = false) private String location; @Column(name = "date_from", nullable = false) private Date from; @Column(name = "date_to", nullable = false) private Date to; @Column(length = 250, nullable = false) private String comment; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getUser() { return user; } public void setUser(String user) { this.user = user; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getIp() { return ip; } public void setIp(String ip) { this.ip = ip; } public String getMac() { return mac; } public void setMac(String mac) { this.mac = mac; } public String getPurpose() { return purpose; } public void setPurpose(String purpose) { this.purpose = purpose; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public Date getFrom() { return from; } public void setFrom(Date from) { this.from = from; } public Date getTo() { return to; } public void setTo(Date to) { this.to = to; } public String getComment() { return comment; } public void setComment(String comment) { this.comment = comment; } }