cz.muni.fi.pclis.commons.domain
Class DomainObject

java.lang.Object
  extended by cz.muni.fi.pclis.commons.domain.DomainObject
Direct Known Subclasses:
ContractAddition, Educatable, ExpectationPoint, Feedback, FeedbackTopics, LearningContract, LearningContractsBehaviour, LearningExpectationsBehaviour, NamedDomainObject, OnlineConsultation, OnlineConsultationRules, PeerEvaluation, ScenarioCourseRelation, TeamProject, User, UserBlogLocation, UserToEducatableRelation

public abstract class DomainObject
extends Object

Abstract parent for all entities User: Ľuboš Pecho Date: 6.7.2009 Time: 17:53:27


Field Summary
private  Long id
          Id of the entity
 
Constructor Summary
DomainObject()
           
 
Method Summary
 boolean equals(Object o)
           
 Long getId()
           
 int hashCode()
           
 void setId(Long id)
          sets the id of the entity
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private Long id
Id of the entity

Constructor Detail

DomainObject

public DomainObject()
Method Detail

getId

public Long getId()
Returns:
the id of the entity

setId

public void setId(Long id)
sets the id of the entity

Parameters:
id -

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009-2010 Faculty of Informatics, Masaryk university, Brno. All Rights Reserved.