/** * C-Nery - A home automation web application for C-Bus. * Copyright (C) 2008,2009,2012 Dave Oxley <dave@daveoxley.co.uk>. * * 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.daveoxley.cnery.entities; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import javax.validation.constraints.NotNull; import org.jboss.seam.annotations.Name; /** * * @author Dave Oxley <dave@daveoxley.co.uk> */ @Entity @Name("gcmRegistrationIdsEntity") @Table(name="gcm_registration_id") public class GcmRegistrationId extends BaseEntity implements Serializable { private String regId; @Column(name="registration_id", unique=true) @NotNull public String getRegistrationId() { return regId; } public void setRegistrationId(String regId) { this.regId = regId; } }