@Entity
public class AccountGroupJPA
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AccountGroupJPA()
Class constructor methods.
|
AccountGroupJPA(int id,
java.lang.String groupName,
UserJPA ownerUser,
java.util.Collection<AccountJPA> accounts)
Instantiates a new account group jpa.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<AccountJPA> |
getAccounts()
Gets the accounts.
|
java.lang.String |
getDescription()
Gets the description.
|
int |
getId()
Gets the id.
|
java.lang.String |
getName()
Methods get/set the fields of database Id Primary Key field.
|
UserJPA |
getUser()
Methods get/set persistent relationships.
|
void |
setAccounts(java.util.Collection<AccountJPA> accounts)
Sets the accounts.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setId(int id)
Sets the id.
|
void |
setName(java.lang.String groupName)
Sets the name.
|
void |
setUser(UserJPA ownerUser)
Sets the user.
|
public AccountGroupJPA()
public AccountGroupJPA(int id, java.lang.String groupName, UserJPA ownerUser, java.util.Collection<AccountJPA> accounts)
id
- the idgroupName
- the group nameownerUser
- the owner useraccounts
- the accountspublic int getId()
public void setId(int id)
id
- the new idpublic java.lang.String getName()
public void setName(java.lang.String groupName)
groupName
- the new namepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the new descriptionpublic UserJPA getUser()
public void setUser(UserJPA ownerUser)
ownerUser
- the new userpublic java.util.Collection<AccountJPA> getAccounts()
public void setAccounts(java.util.Collection<AccountJPA> accounts)
accounts
- the new accounts