FileDocCategorySizeDatePackage
Location.javaAPI DocHibernate 3.2.52271Sun Sep 26 00:18:28 BST 2004org.hibernate.test.legacy

Location

public class Location extends Object implements Serializable

Fields Summary
private int
streetNumber
private String
city
private String
streetName
private String
countryCode
private Locale
locale
private String
description
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object other)

		Location l = (Location) other;
		return l.getCity().equals(city) && l.getStreetName().equals(streetName) && l.getCountryCode().equals(countryCode) && l.getStreetNumber()==streetNumber;
	
public java.lang.StringgetCity()
Returns the city.

return
String

		return city;
	
public java.lang.StringgetCountryCode()
Returns the countryCode.

return
String

		return countryCode;
	
public java.lang.StringgetDescription()
Returns the description.

return
String

		return description;
	
public java.util.LocalegetLocale()
Returns the locale.

return
Locale

		return locale;
	
public java.lang.StringgetStreetName()
Returns the streetName.

return
String

		return streetName;
	
public intgetStreetNumber()
Returns the streetNumber.

return
int

		return streetNumber;
	
public inthashCode()

		return streetName.hashCode();
	
public voidsetCity(java.lang.String city)
Sets the city.

param
city The city to set

		this.city = city;
	
public voidsetCountryCode(java.lang.String countryCode)
Sets the countryCode.

param
countryCode The countryCode to set

		this.countryCode = countryCode;
	
public voidsetDescription(java.lang.String description)
Sets the description.

param
description The description to set

		this.description = description;
	
public voidsetLocale(java.util.Locale locale)
Sets the locale.

param
locale The locale to set

		this.locale = locale;
	
public voidsetStreetName(java.lang.String streetName)
Sets the streetName.

param
streetName The streetName to set

		this.streetName = streetName;
	
public voidsetStreetNumber(int streetNumber)
Sets the streetNumber.

param
streetNumber The streetNumber to set

		this.streetNumber = streetNumber;