info.joseluismartin.model
Class Entity

java.lang.Object
  extended by info.joseluismartin.model.Entity
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TableState

@MappedSuperclass
public class Entity
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  Long id
           
protected  String name
           
 
Constructor Summary
Entity()
           
 
Method Summary
 boolean equals(Object obj)
          
 Long getId()
           
 String getName()
           
 int hashCode()
          
 void setId(Long id)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

name

protected String name
Constructor Detail

Entity

public Entity()
Method Detail

getId

public Long getId()
Returns:
the id

setId

public void setId(Long id)
Parameters:
id - the id to set

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object


Copyright © 2012 JDAL. All Rights Reserved.