/******************************************************************************* * ***** BEGIN LICENSE BLOCK Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for * the specific language governing rights and limitations under the License. * * The Original Code is the OpenCustomer CRM. * * The Initial Developer of the Original Code is Thomas Bader (Bader & Jene * Software-Ingenieurb�ro). Portions created by the Initial Developer are * Copyright (C) 2006 the Initial Developer. All Rights Reserved. * * Contributor(s): Thomas Bader <thomas.bader@bader-jene.de> * * ***** END LICENSE BLOCK ***** */ package org.opencustomer.db.vo.system; import javax.persistence.AttributeOverride; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import org.apache.commons.lang.builder.ToStringBuilder; import org.opencustomer.framework.db.vo.VersionedVO; @Entity @Table(name = "configuration") @AttributeOverride(name = "id", column = @Column(name = "configuration_id")) @org.hibernate.annotations.Entity(selectBeforeUpdate=true) public class ConfigurationVO extends VersionedVO { private static final long serialVersionUID = 3258126955776849203L; private UserVO user; private String key; private String subKey; private String value; @ManyToOne @JoinColumn(name = "user_id") public UserVO getUser() { return user; } public void setUser(UserVO user) { this.user = user; } @Column(name = "main_key") public String getKey() { return key; } public void setKey(String key) { this.key = key; } @Column(name = "sub_key") public String getSubKey() { return subKey; } public void setSubKey(String subKey) { this.subKey = subKey; } @Column(name = "value") public String getValue() { return value; } public void setValue(String value) { this.value = value; } protected void toString(ToStringBuilder builder) { builder.append("key", key); builder.append("subKey", subKey); } }