@Entity(name="COM_ACCOUNT") public class Account extends EntityJPA<Long>
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTITY_NAME |
static String |
QUERY_ACCOUNT_BY_USERNAME |
DEFAULT_STRING_LENGTH, ID| Constructor and Description |
|---|
Account() |
Account(User user,
Person person) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Long |
getId() |
Person |
getPerson() |
User |
getUser() |
int |
hashCode()
Calcul du hashcode sur la clé naturelle.
|
void |
mergeFromDTO(AccountDTO dto) |
void |
setId(Long id) |
void |
setPerson(Person person) |
void |
setUser(User user) |
static AccountDTO |
toDTO(Account account) |
String |
toString() |
public static final String ENTITY_NAME
public static final String QUERY_ACCOUNT_BY_USERNAME
public Person getPerson()
public void setPerson(Person person)
public User getUser()
public void setUser(User user)
public static AccountDTO toDTO(Account account)
public void mergeFromDTO(AccountDTO dto)
public int hashCode()
Copyright © 2012. All Rights Reserved.