/*
 * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/*
 * $Id: TestBean3.java 65615 2012-03-29 19:02:39Z sdimilla $
 */

package com.sun.ts.tests.jpa.core.types.primarykey.compound;

import com.sun.ts.lib.util.TestUtil;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

@Entity
@IdClass(com.sun.ts.tests.jpa.core.types.primarykey.compound.CompoundPK3.class)
@Table(name= "PKEY")
public class TestBean3 implements java.io.Serializable{

   @Id
   private Integer pmIDInteger;
   @Id
   private String pmIDString;
   @Id
   private Float pmIDFloat;
   private String brandName;
   private float price;

   public TestBean3() {
   }

   public TestBean3(Integer pmIDInteger, String pmIDString, Float pmIDFloat,
			 String brandName, float price) {
        this.pmIDInteger = pmIDInteger;
        this.pmIDString = pmIDString;
        this.pmIDFloat = pmIDFloat;
	this.brandName = brandName;
	this.price = price;
   }

    public void ping() {
	TestUtil.logTrace("[TestBean] ping()");
    }

}

