/** * Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U <br> * This file is part of FI-WARE project. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. * </p> * <p> * You may obtain a copy of the License at:<br> * <br> * http://www.apache.org/licenses/LICENSE-2.0 * </p> * <p> * 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. * </p> * <p> * See the License for the specific language governing permissions and limitations under the License. * </p> * <p> * For those usages not covered by the Apache version 2.0 License please contact with opensource@tid.es * </p> */ package com.telefonica.euro_iaas.commons.properties; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.IdClass; import javax.persistence.Table; /** * A propeties entry to be stored. * * @author Sergio Arroyo */ @Entity @Table(name = "configuration_properties") @IdClass(PersistentPropertyPK.class) public class PersistentProperty { @Id private String namespace; @Id @Column(name = "\"key\"") private String key; @Column(length = 32672) private String value; /** * @return the key */ public String getKey() { return key; } /** * @param key * the key to set */ public void setKey(final String key) { this.key = key; } /** * @return the namespace */ public String getNamespace() { return namespace; } /** * @param namespace * the namespace to set */ public void setNamespace(final String namespace) { this.namespace = namespace; } /** * @return the value */ public String getValue() { return value; } /** * @param value * the value to set */ public void setValue(final String value) { this.value = value; } }