// Path: src/main/java/eu/cloudscale/showcase/db/model/IShoppingCart.java
// public interface IShoppingCart
// {
// 
// 	public void setScTime(Date scTime);
// 
// 	public Date getScTime();
// 
// 	public void setScId(Integer scId);
// 
// 	public Integer getScId();
// 
// 	public Set<IShoppingCartLine> getShoppingCartLines();
// 
// }
// 
// Path: src/main/java/eu/cloudscale/showcase/db/model/IShoppingCartLine.java
// public interface IShoppingCartLine
// {
// 
// 	public IShoppingCart getShoppingCart();
// 
// 	public void setShoppingCart(IShoppingCart shoppingCart);
// 
// 	public Integer getSclId();
// 
// 	public void setSclId(Integer sclScId);
// 
// 	public IItem getItem();
// 
// 	public void setItem(IItem item);
// 
// 	public Integer getSclQty();
// 
// 	public void setSclQty(Integer sclQty);
// 
// }


import eu.cloudscale.showcase.db.model.IShoppingCart;
import eu.cloudscale.showcase.db.model.IShoppingCartLine;
import static javax.persistence.GenerationType.IDENTITY;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
/*******************************************************************************
*  Copyright (c) 2015 XLAB d.o.o.
*  All rights reserved. This program and the accompanying materials
*  are made available under the terms of the Eclipse Public License v1.0
*  which accompanies this distribution, and is available at
*  http://www.eclipse.org/legal/epl-v10.html
*  
*  @author XLAB d.o.o.
*******************************************************************************/
package eu.cloudscale.showcase.db.model.hibernate;

// Generated May 16, 2013 3:07:18 PM by Hibernate Tools 4.0.0







/**
 * ShoppingCart generated by hbm2java
 */
@Entity
@Table( name = "shopping_cart", catalog = "tpcw" )
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)

public class ShoppingCart implements IShoppingCart
{
	private Integer scId;

	private Date    scTime;
	
	private Set<IShoppingCartLine> shoppingCartLines = new HashSet<IShoppingCartLine>( 0 );

	public ShoppingCart()
	{
	}

	public ShoppingCart(Date scTime)
	{
		this.scTime = scTime;
	}

	@OneToMany( targetEntity=ShoppingCartLine.class, fetch = FetchType.LAZY, mappedBy = "shoppingCart" )
    public Set<IShoppingCartLine> getShoppingCartLines()
    {
    	return shoppingCartLines;
    }

    public void setShoppingCartLines(Set<IShoppingCartLine> shoppingCartLines)
    {
    	this.shoppingCartLines = shoppingCartLines;
    }

	@Id
	@GeneratedValue( strategy = IDENTITY )
	@Column( name = "SC_ID", unique = true, nullable = false )
// Path: src/main/java/eu/cloudscale/showcase/db/model/IShoppingCart.java
// public interface IShoppingCart
// {
// 
// 	public void setScTime(Date scTime);
// 
// 	public Date getScTime();
// 
// 	public void setScId(Integer scId);
// 
// 	public Integer getScId();
// 
// 	public Set<IShoppingCartLine> getShoppingCartLines();
// 
// }
// 
// Path: src/main/java/eu/cloudscale/showcase/db/model/IShoppingCartLine.java
// public interface IShoppingCartLine
// {
// 
// 	public IShoppingCart getShoppingCart();
// 
// 	public void setShoppingCart(IShoppingCart shoppingCart);
// 
// 	public Integer getSclId();
// 
// 	public void setSclId(Integer sclScId);
// 
// 	public IItem getItem();
// 
// 	public void setItem(IItem item);
// 
// 	public Integer getSclQty();
// 
// 	public void setSclQty(Integer sclQty);
// 
// }


// Path: src/main/java/eu/cloudscale/showcase/db/model/hibernate/ShoppingCart.java
import eu.cloudscale.showcase.db.model.IShoppingCart;
import eu.cloudscale.showcase.db.model.IShoppingCartLine;
import static javax.persistence.GenerationType.IDENTITY;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/*******************************************************************************
*  Copyright (c) 2015 XLAB d.o.o.
*  All rights reserved. This program and the accompanying materials
*  are made available under the terms of the Eclipse Public License v1.0
*  which accompanies this distribution, and is available at
*  http://www.eclipse.org/legal/epl-v10.html
*  
*  @author XLAB d.o.o.
*******************************************************************************/
package eu.cloudscale.showcase.db.model.hibernate;

// Generated May 16, 2013 3:07:18 PM by Hibernate Tools 4.0.0







/**
 * ShoppingCart generated by hbm2java
 */
@Entity
@Table( name = "shopping_cart", catalog = "tpcw" )
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)

public class ShoppingCart implements IShoppingCart
{
	private Integer scId;

	private Date    scTime;
	
	private Set<IShoppingCartLine> shoppingCartLines = new HashSet<IShoppingCartLine>( 0 );

	public ShoppingCart()
	{
	}

	public ShoppingCart(Date scTime)
	{
		this.scTime = scTime;
	}

	@OneToMany( targetEntity=ShoppingCartLine.class, fetch = FetchType.LAZY, mappedBy = "shoppingCart" )
    public Set<IShoppingCartLine> getShoppingCartLines()
    {
    	return shoppingCartLines;
    }

    public void setShoppingCartLines(Set<IShoppingCartLine> shoppingCartLines)
    {
    	this.shoppingCartLines = shoppingCartLines;
    }

	@Id
	@GeneratedValue( strategy = IDENTITY )
	@Column( name = "SC_ID", unique = true, nullable = false )
	@Override