/* * Hibernate Search, full-text search for your domain model * * 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.search.test.embedded.update; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; @Entity public class ProductReferenceCode { @Id @GeneratedValue private Long id; @ManyToOne(optional = false) private ProductModel model; @Column(nullable = false) private String rawValue; protected ProductReferenceCode() { } public ProductReferenceCode(ProductModel model, String rawValue) { this.model = model; this.rawValue = rawValue; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public ProductModel getModel() { return model; } public void setModel(ProductModel model) { this.model = model; } public String getRawValue() { return rawValue; } public void setRawValue(String rawValue) { this.rawValue = rawValue; } }