// Path: src/main/java/br/com/soapboxrace/jaxb/OwnedCarTransType.java
// @XmlAccessorType(XmlAccessType.FIELD)
// @XmlType(name = "OwnedCarTransType", propOrder = { "customCar", "durability", "expirationDate", "heatLevel",
// 		"uniqueCarId", "ownershipType" })
// @XmlRootElement(name = "OwnedCarTrans")
// public class OwnedCarTransType {
// 
// 	@XmlElement(name = "CustomCar")
// 	protected CustomCarType customCar;
// 	@XmlElement(name = "Durability")
// 	protected short durability;
// 	@XmlElement(name = "ExpirationDate")
// 	protected String expirationDate;
// 	@XmlElement(name = "Heat")
// 	protected short heatLevel;
// 	@XmlElement(name = "Id")
// 	@Id
// 	@GeneratedValue(strategy = GenerationType.IDENTITY)
// 	protected long uniqueCarId;
// 	@XmlElement(name = "OwnershipType")
// 	protected String ownershipType;
// 
// 	public CustomCarType getCustomCar() {
// 		return this.customCar;
// 	}
// 
// 	public void setCustomCar(CustomCarType value) {
// 		this.customCar = value;
// 	}
// 
// 	public short getDurability() {
// 		return durability;
// 	}
// 
// 	public void setDurability(short value) {
// 		this.durability = value;
// 	}
// 
// 	public String getExpirationDate() {
// 		return expirationDate;
// 	}
// 
// 	public void setExpirationDate(String value) {
// 		this.expirationDate = value;
// 	}
// 
// 	public short getHeatLevel() {
// 		return heatLevel;
// 	}
// 
// 	public void setHeatLevel(short value) {
// 		this.heatLevel = value;
// 	}
// 
// 	public long getUniqueCarId() {
// 		return uniqueCarId;
// 	}
// 
// 	public void setUniqueCarId(long value) {
// 		this.uniqueCarId = value;
// 	}
// 
// 	public String getOwnershipType() {
// 		return ownershipType;
// 	}
// 
// 	public void setOwnershipType(String value) {
// 		this.ownershipType = value;
// 	}
// }


import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import br.com.soapboxrace.jaxb.OwnedCarTransType;
import br.com.soapboxrace.jaxb.convert.OwnedCarTransConverter;
package br.com.soapboxrace.jpa;



@Entity
@Table(name = "BASKETDEFINITION")
public class BasketDefinitionEntity implements ISoapBoxEntity {

	private static final long serialVersionUID = 5314835854384144787L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Long id;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "ProductId")
	private String productId;

	@Convert(converter = OwnedCarTransConverter.class)
	@Column(name = "OwnedCarTrans", length = 40000)
// Path: src/main/java/br/com/soapboxrace/jaxb/OwnedCarTransType.java
// @XmlAccessorType(XmlAccessType.FIELD)
// @XmlType(name = "OwnedCarTransType", propOrder = { "customCar", "durability", "expirationDate", "heatLevel",
// 		"uniqueCarId", "ownershipType" })
// @XmlRootElement(name = "OwnedCarTrans")
// public class OwnedCarTransType {
// 
// 	@XmlElement(name = "CustomCar")
// 	protected CustomCarType customCar;
// 	@XmlElement(name = "Durability")
// 	protected short durability;
// 	@XmlElement(name = "ExpirationDate")
// 	protected String expirationDate;
// 	@XmlElement(name = "Heat")
// 	protected short heatLevel;
// 	@XmlElement(name = "Id")
// 	@Id
// 	@GeneratedValue(strategy = GenerationType.IDENTITY)
// 	protected long uniqueCarId;
// 	@XmlElement(name = "OwnershipType")
// 	protected String ownershipType;
// 
// 	public CustomCarType getCustomCar() {
// 		return this.customCar;
// 	}
// 
// 	public void setCustomCar(CustomCarType value) {
// 		this.customCar = value;
// 	}
// 
// 	public short getDurability() {
// 		return durability;
// 	}
// 
// 	public void setDurability(short value) {
// 		this.durability = value;
// 	}
// 
// 	public String getExpirationDate() {
// 		return expirationDate;
// 	}
// 
// 	public void setExpirationDate(String value) {
// 		this.expirationDate = value;
// 	}
// 
// 	public short getHeatLevel() {
// 		return heatLevel;
// 	}
// 
// 	public void setHeatLevel(short value) {
// 		this.heatLevel = value;
// 	}
// 
// 	public long getUniqueCarId() {
// 		return uniqueCarId;
// 	}
// 
// 	public void setUniqueCarId(long value) {
// 		this.uniqueCarId = value;
// 	}
// 
// 	public String getOwnershipType() {
// 		return ownershipType;
// 	}
// 
// 	public void setOwnershipType(String value) {
// 		this.ownershipType = value;
// 	}
// }


// Path: src/main/java/br/com/soapboxrace/jpa/BasketDefinitionEntity.java
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import br.com.soapboxrace.jaxb.OwnedCarTransType;
import br.com.soapboxrace.jaxb.convert.OwnedCarTransConverter;

package br.com.soapboxrace.jpa;



@Entity
@Table(name = "BASKETDEFINITION")
public class BasketDefinitionEntity implements ISoapBoxEntity {

	private static final long serialVersionUID = 5314835854384144787L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Long id;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "ProductId")
	private String productId;

	@Convert(converter = OwnedCarTransConverter.class)
	@Column(name = "OwnedCarTrans", length = 40000)
	private OwnedCarTransType ownedCarTrans;