com.hack23.cia.model.common.impl
Class BaseEntity
java.lang.Object
com.hack23.cia.model.common.impl.BaseEntity
- All Implemented Interfaces:
- ModelObject, PersistedModelObject, Serializable
- Direct Known Subclasses:
- AbstractActionEvent, AbstractBallotMetaData, AbstractResource, Agency, Ballot, Committee, CommitteeReport, Election, GameBoard, Human, Parliament, ParliamentMember, ParliamentMemberVoteCompareResult, ParliamentYear, Player, PoliticalGame, PoliticalParty, RegisterInformation, User, UserSession, Vote, VoteMetaData
@MappedSuperclass
public abstract class BaseEntity
- extends Object
- implements PersistedModelObject
The Class BaseEntity.
- See Also:
- Serialized Form
BaseEntity
public BaseEntity()
equals
public final boolean equals(Object obj)
- Overrides:
equals
in class Object
getId
public abstract Long getId()
- Gets the id.
- Specified by:
getId
in interface PersistedModelObject
- Returns:
- the id
getVersion
public abstract Long getVersion()
- Gets the version.
- Specified by:
getVersion
in interface PersistedModelObject
- Returns:
- the version
hashCode
public final int hashCode()
- Overrides:
hashCode
in class Object
isNew
public boolean isNew()
- Description copied from interface:
PersistedModelObject
- Checks if is new.
- Specified by:
isNew
in interface PersistedModelObject
- Returns:
- true, if is new
Copyright © 2008-2009 www.hack23.com. All Rights Reserved.