/* * 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.test.bytecode.enhancement.ondemandload; import java.io.Serializable; import java.math.BigDecimal; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Version; @Entity public class Product implements Serializable { private String id; private String name; private String description; private BigDecimal msrp; private int version; private Product() { } public Product(String id) { this.id = id; } @Id public String getId() { return id; } private void setId(String id) { this.id = id; } public String getName() { return name; } public Product setName(String name) { this.name = name; return this; } public String getDescription() { return description; } public Product setDescription(String description) { this.description = description; return this; } public BigDecimal getMsrp() { return msrp; } public Product setMsrp(BigDecimal msrp) { this.msrp = msrp; return this; } @Version public int getVersion() { return version; } private void setVersion(int version) { this.version = version; } }