Class HvlOAuthRoleAuthorityRel
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.role.entity.HvlOAuthRoleAuthorityRel
- All Implemented Interfaces:
Serializable,Comparable<tr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity<Long>>,tr.com.havelsan.javarch.data.commons.structure.HvlEntityStructure<Long>
@Entity
public class HvlOAuthRoleAuthorityRel
extends tr.com.havelsan.javarch.domain.model.entity.HvlSoftDeleteEntity
An entity class which is used to relation between
HvlOAuthRole and HvlOAuthAuthority- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe constant AUTHORITY_FIELD.static final StringThe constant AUTHORITY_ID_FIELD_COLUMN.static final StringThe constant AUTHORITY_ID_FOREIGN_KEY.static final StringThe constant AUTHORITY_ID_INDEX.static final StringThe constant ROLE_AUTHORITY_REL_UNIQUE_KEY.static final StringThe constant ROLE_FIELD.static final StringThe constant ROLE_ID_FIELD_COLUMN.static final StringThe constant ROLE_ID_FOREIGN_KEY.static final StringThe constant ROLE_ID_INDEX.static final StringThe constant TABLE_NAME.static final StringThe 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_COLUMNFields 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, CREATED_REMOTE_ADDR_FIELD, CREATED_REMOTE_ADDR_FIELD_COLUMN, ID_FIELD, ID_FIELD_COLUMN, UPDATED_BY_FIELD, UPDATED_BY_FIELD_COLUMN, UPDATED_DATE_FIELD, UPDATED_DATE_FIELD_COLUMN, UPDATED_REMOTE_ADDR_FIELD, UPDATED_REMOTE_ADDR_FIELD_COLUMN, UUID_FIELD, UUID_FIELD_COLUMN, VERSION_FIELD, VERSION_FIELD_COLUMN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets authority.Gets authority id.getRole()Gets role.Gets role id.inthashCode()voidsetAuthority(HvlOAuthAuthority authority) Sets authority.voidsetAuthorityId(Long authorityId) Sets authority id.voidsetRole(HvlOAuthRole role) Sets role.voidSets role id.Methods inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlSoftDeleteEntity
getDeleted, getDeletedDate, setDeleted, setDeletedDateMethods inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlEntity
getId, setIdMethods inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity
compareTo, getCreatedBy, getCreatedRemoteAddr, getDateCreated, getDateUpdated, getUpdatedBy, getUpdatedRemoteAddr, getUuid, getVersion, setCreatedBy, setCreatedRemoteAddr, setDateCreated, setDateUpdated, setUpdatedBy, setUpdatedRemoteAddr, setUuid, setVersion
-
Field Details
-
TABLE_NAME
The constant TABLE_NAME.- See Also:
-
ROLE_ID_FIELD_COLUMN
The constant ROLE_ID_FIELD_COLUMN.- See Also:
-
AUTHORITY_ID_FIELD_COLUMN
The constant AUTHORITY_ID_FIELD_COLUMN.- See Also:
-
ROLE_ID_FOREIGN_KEY
The constant ROLE_ID_FOREIGN_KEY.- See Also:
-
AUTHORITY_ID_FOREIGN_KEY
The constant AUTHORITY_ID_FOREIGN_KEY.- See Also:
-
UUID_UNIQUE_KEY
The constant UUID_UNIQUE_KEY.- See Also:
-
ROLE_AUTHORITY_REL_UNIQUE_KEY
The constant ROLE_AUTHORITY_REL_UNIQUE_KEY.- See Also:
-
ROLE_ID_INDEX
The constant ROLE_ID_INDEX.- See Also:
-
AUTHORITY_ID_INDEX
The constant AUTHORITY_ID_INDEX.- See Also:
-
ROLE_FIELD
The constant ROLE_FIELD.- See Also:
-
AUTHORITY_FIELD
The constant AUTHORITY_FIELD.- See Also:
-
-
Constructor Details
-
HvlOAuthRoleAuthorityRel
public HvlOAuthRoleAuthorityRel()
-
-
Method Details
-
getRole
Gets role.- Returns:
- the role
-
setRole
Sets role.- Parameters:
role- the role
-
getRoleId
Gets role id.- Returns:
- the role id
-
setRoleId
Sets role id.- Parameters:
roleId- the role id
-
getAuthority
Gets authority.- Returns:
- the authority
-
setAuthority
Sets authority.- Parameters:
authority- the authority
-
getAuthorityId
Gets authority id.- Returns:
- the authority id
-
setAuthorityId
Sets authority id.- Parameters:
authorityId- the authority id
-
equals
- Overrides:
equalsin classtr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity<Long>
-
hashCode
public int hashCode()- Overrides:
hashCodein classtr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity<Long>
-