info.joseluismartin.model
Class Entity
java.lang.Object
info.joseluismartin.model.Entity
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- TableState
@MappedSuperclass
public class Entity
- extends Object
- implements Serializable
- See Also:
- Serialized Form
id
protected Long id
name
protected String name
Entity
public Entity()
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.