@Entity public class Organization extends HierarchialDomainObjectWithAttributes<Organization,OrganizationAttribute>
Modifier and Type | Field and Description |
---|---|
protected Map<String,OrganizationAttribute> |
attributes
Any attribute that is not common for most of the entities belongs to be an Attribute rather than a field.
|
protected Long |
id |
protected String |
name
Unique Name to refer to the record
Id is an Auto generated number used by the system,
but is difficult for the outside world to get a handle on it.
|
ATTRIB_HIERARCHY_STARTS_LIKE, ATTRIB_PRODUCT_PARENT, displayName, parentId
ROOT
Constructor and Description |
---|
Organization() |
Organization(String s) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Map<String,OrganizationAttribute> |
getAttributes() |
GeoLocation |
getGeoLocation() |
Long |
getId() |
String |
getName()
Unique Name to refer to the record
Id is an Auto generated number used by the system,
but is difficult for the outside world to get a handle on it.
|
int |
hashCode() |
boolean |
liberalEquals(Venue obj)
Id or name matches
|
Organization |
setAttribute(String name,
String value)
Any attribute that is not common for most of the entities belongs to be an Attribute rather than a field.
|
void |
setAttributes(Map<String,OrganizationAttribute> attributes) |
void |
setGeoLocation(GeoLocation geoLocation) |
void |
setId(Long id) |
void |
setName(String name)
Unique Name to refer to the record
Id is an Auto generated number used by the system,
but is difficult for the outside world to get a handle on it.
|
String |
toString() |
getAttribute, getAttributeValue
getDisplayName, getHierarchy, getParentId, setDisplayName, setHierarchy, setParentId
@Type(value="HIDDEN") protected String name
protected Map<String,OrganizationAttribute> attributes
public Organization()
public Organization(String s)
public Long getId()
public void setId(Long id)
id
- the id to setpublic String getName()
IHierarchialReference
public void setName(String name)
IHierarchialReference
name
- the name to setpublic GeoLocation getGeoLocation()
public void setGeoLocation(GeoLocation geoLocation)
geoLocation
- the geoLocation to setpublic Organization setAttribute(String name, String value)
HierarchialDomainObjectWithAttributes
setAttribute
in interface Attributes<Organization,String>
setAttribute
in class HierarchialDomainObjectWithAttributes<Organization,OrganizationAttribute>
name
- as Stringvalue
- as public Map<String,OrganizationAttribute> getAttributes()
getAttributes
in class HierarchialDomainObjectWithAttributes<Organization,OrganizationAttribute>
public void setAttributes(Map<String,OrganizationAttribute> attributes)
setAttributes
in class HierarchialDomainObjectWithAttributes<Organization,OrganizationAttribute>
public boolean liberalEquals(Venue obj)
public boolean equals(Object obj)
equals
in class HierarchialDomainObject
public int hashCode()
hashCode
in class HierarchialDomainObject
public String toString()
toString
in class HierarchialDomainObject
Copyright © 2018. All rights reserved.