/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.jpa.test.metagen.mappedsuperclass.idclass; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.IdClass; @Entity @IdClass(value = ProductAttributeId.class) public class ProductAttribute extends AbstractAttribute implements Serializable { private String owner; public ProductAttribute(String key, String value, String product) { this.key = key; this.value = value; this.owner = product; } public ProductAttribute() { super(); } @Id @Column(name = "owner") public String getOwner() { return owner; } public void setOwner(String owner) { this.owner = owner; } @Id @Column(name = "attribute_key") public String getKey() { return key; } }