Class HvlOAuthAuthority
java.lang.Object
tr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity<Long>
tr.com.havelsan.javarch.domain.model.entity.HvlEntity
tr.com.havelsan.javarch.domain.model.entity.HvlSoftDeleteEntity
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.authority.entity.HvlOAuthAuthority
- All Implemented Interfaces:
Serializable
,Comparable<tr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity>
,tr.com.havelsan.javarch.data.commons.structure.HvlEntityStructure<Long>
@Entity
public class HvlOAuthAuthority
extends tr.com.havelsan.javarch.domain.model.entity.HvlSoftDeleteEntity
An entity class which defines authority fields
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The constant CODE_FIELD_COLUMN.static final String
The constant CODE_INDEX.static final String
The constant CODE_UNIQUE_KEY.static final String
The constant DESCRIPTION_FIELD_COLUMN.static final String
The constant LABEL_FIELD_COLUMN.static final String
The constant LABEL_INDEX.static final String
The constant PARENT_ID_FIELD_COLUMN.static final String
The constant PARENT_ID_FOREIGN_KEY.static final String
The constant PARENT_ID_INDEX.static final String
The constant TABLE_NAME.static final String
The constant UUID_UNIQUE_KEY.Fields inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlSoftDeleteEntity
DELETED_DATE_FIELD, DELETED_DATE_FIELD_COLUMN, DELETED_FIELD, DELETED_FIELD_COLUMN
Fields inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity
CREATED_BY_FIELD, CREATED_BY_FIELD_COLUMN, CREATED_DATE_FIELD, CREATED_DATE_FIELD_COLUMN, ID_FIELD, ID_FIELD_COLUMN, UPDATED_BY_FIELD, UPDATED_BY_FIELD_COLUMN, UPDATED_DATE_FIELD, UPDATED_DATE_FIELD_COLUMN, UUID_FIELD, UUID_FIELD_COLUMN, VERSION_FIELD, VERSION_FIELD_COLUMN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Gets code.Gets description.getLabel()
Gets label.Gets parent.Gets parent id.int
hashCode()
void
Sets code.void
setDescription
(String description) Sets description.void
Sets label.void
setParent
(HvlOAuthAuthority parent) Sets parent.void
setParentId
(Long parentId) Sets parent id.Methods inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlSoftDeleteEntity
getDeleted, getDeletedDate, setDeleted, setDeletedDate
Methods inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlEntity
getId, setId
Methods inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity
compareTo, getCreatedBy, getDateCreated, getDateUpdated, getUpdatedBy, getUuid, getVersion, setCreatedBy, setDateCreated, setDateUpdated, setUpdatedBy, setUuid, setVersion
-
Field Details
-
TABLE_NAME
The constant TABLE_NAME.- See Also:
-
CODE_FIELD_COLUMN
The constant CODE_FIELD_COLUMN.- See Also:
-
LABEL_FIELD_COLUMN
The constant LABEL_FIELD_COLUMN.- See Also:
-
DESCRIPTION_FIELD_COLUMN
The constant DESCRIPTION_FIELD_COLUMN.- See Also:
-
PARENT_ID_FIELD_COLUMN
The constant PARENT_ID_FIELD_COLUMN.- See Also:
-
PARENT_ID_FOREIGN_KEY
The constant PARENT_ID_FOREIGN_KEY.- See Also:
-
UUID_UNIQUE_KEY
The constant UUID_UNIQUE_KEY.- See Also:
-
CODE_UNIQUE_KEY
The constant CODE_UNIQUE_KEY.- See Also:
-
CODE_INDEX
The constant CODE_INDEX.- See Also:
-
LABEL_INDEX
The constant LABEL_INDEX.- See Also:
-
PARENT_ID_INDEX
The constant PARENT_ID_INDEX.- See Also:
-
-
Constructor Details
-
HvlOAuthAuthority
public HvlOAuthAuthority()
-
-
Method Details
-
getCode
Gets code.- Returns:
- the code
-
setCode
Sets code.- Parameters:
code
- the code
-
getLabel
Gets label.- Returns:
- the label
-
setLabel
Sets label.- Parameters:
label
- the label
-
getDescription
Gets description.- Returns:
- the description
-
setDescription
Sets description.- Parameters:
description
- the description
-
getParentId
Gets parent id.- Returns:
- the parent id
-
setParentId
Sets parent id.- Parameters:
parentId
- the parent id
-
getParent
Gets parent.- Returns:
- the parent
-
setParent
Sets parent.- Parameters:
parent
- the parent
-
equals
- Overrides:
equals
in classtr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity<Long>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classtr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity<Long>
-