FileDocCategorySizeDatePackage
Location.javaAPI DocHibernate 3.2.51021Tue Aug 17 04:20:18 BST 2004org.hibernate.test.unionsubclass

Location

public class Location extends Object
author
Gavin King

Fields Summary
private long
id
private String
name
private Collection
beings
Constructors Summary
Location()

	
	 
public Location(String name)

		this.name = name;
	
Methods Summary
public voidaddBeing(Being b)

		b.setLocation(this);
		beings.add(b);
	
public java.util.CollectiongetBeings()

return
Returns the beings.

		return beings;
	
public longgetId()

return
Returns the id.

		return id;
	
public java.lang.StringgetName()

return
Returns the name.

		return name;
	
public voidsetBeings(java.util.Collection beings)

param
beings The beings to set.

		this.beings = beings;
	
public voidsetId(long id)

param
id The id to set.

		this.id = id;
	
public voidsetName(java.lang.String name)

param
name The name to set.

		this.name = name;