hibernate-distribution-3.3.1.GA-dist.zip源码

源代码在线查看: g.java

软件大小: 30726 K
上传用户: hcwlxhyq
关键词: hibernate-distribution GA-dist zip 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				package org.hibernate.test.cascade;
				
				import java.util.Set;
				import java.util.HashSet;
				
				/**
				 * @author Ovidiu Feodorov
				 *
				 * Copyright 2008 Ovidiu Feodorov
				 *
				 * @version $Revision$
				 *
				 * $Id$
				 */
				public class G
				{
				    // Constants -----------------------------------------------------------------------------------
				
				    // Static --------------------------------------------------------------------------------------
				
				    // Attributes ----------------------------------------------------------------------------------
				
				    private long id;
				
				    private String data;
				
				    // A 1  1 G
				    private A a;
				
				    // G *  * H
				    private Set hs;
				
				    // Constructors --------------------------------------------------------------------------------
				
				    public G()
				    {
				        this(null);
				    }
				
				    public G(String data)
				    {
				        this.data = data;
				        hs = new HashSet();
				    }
				
				    // Public --------------------------------------------------------------------------------------
				
				    public String getData()
				    {
				        return data;
				    }
				
				    public void setData(String data)
				    {
				        this.data = data;
				    }
				
				    public A getA()
				    {
				        return a;
				    }
				
				    public void setA(A a)
				    {
				        this.a = a;
				    }
				
				    public Set getHs()
				    {
				        return hs;
				    }
				
				    public void setHs(Set s)
				    {
				        hs = s;
				    }
				
				    // Package protected ---------------------------------------------------------------------------
				
				    long getId()
				    {
				        return id;
				    }
				
				    // Protected -----------------------------------------------------------------------------------
				
				    // Private -------------------------------------------------------------------------------------
				
				    private void setId(long id)
				    {
				        this.id = id;
				    }
				
				    // Inner classes -------------------------------------------------------------------------------
				}
							

相关资源