Skip to content

Commit

Permalink
IVIS-46: Updated data_access.
Browse files Browse the repository at this point in the history
  • Loading branch information
RuslanPopenko committed Dec 2, 2016
1 parent 8904cfc commit 43cd3a4
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 117 deletions.
208 changes: 91 additions & 117 deletions docs/basic_concepts/data_access.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,220 +19,194 @@ Relations in DB also are implement by standard JPA.

.. note::

Embedded entities don't have id and cann't exist without parent entity.
Embedded entities don't have id and can't exist without parent entity.

List of all tables and description
----------------------------------

dbo_academic_year
~~~~~~~~~~~~~~~~~
Represents AcademicYear entity
Represents AcademicYear entity.

dbo_activity
~~~~~~~~~~~~
Represents Activity entity
Represents Activity entity.

dbo_after_school_center_section
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents AfterSchoolCenterSection entity

dbo_app_role
~~~~~~~~~~~~
Represents ApplicationRole entity
Represents AfterSchoolCenterSection entity.

dbo_application
~~~~~~~~~~~~~~~
Represents Application entity
Represents Application entity.

dbo_application_form
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents ApplicationForm entity
~~~~~~~~~~~~~~~~~~~~
Represents ApplicationForm entity.

dbo_application_form_question
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents ApplicationFormQuestion entity
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents ApplicationFormQuestion entity.

dbo_application_form_question_group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents ApplicationFormQuestionGroup entity
Represents ApplicationFormQuestionGroup entity.

dbo_application_form_step
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents ApplicationFormStep entity
~~~~~~~~~~~~~~~~~~~~~~~~~
Represents ApplicationFormStep entity.

dbo_category
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Category entity

dbo_contact_person
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents ContactPerson entity

dbo_contact_person_address
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Address embeddable for ContactPerson

dbo_contact_person_email
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Email embeddable for ContactPerson

dbo_contact_person_phone
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Phone embeddable for ContactPerson
~~~~~~~~~~~~
Represents Category entity.

dbo_entity_version
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents EntityVersion entity
~~~~~~~~~~~~~~~~~~
Represents EntityVersion entity.

dbo_guardian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Guardian entity
~~~~~~~~~~~~
Represents Guardian entity.

dbo_incident
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Incident entity
~~~~~~~~~~~~
Represents Incident entity.

dbo_incident_category_cross
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Incident and Category entities

dbo_incident_person_cross
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Incident and Person entities
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Incident and Category entities.

dbo_incident_pupil_cross
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Incident and Pupil entities
~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Incident and Pupil entities.

dbo_issue
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Issue entity
~~~~~~~~~
Represents Issue entity.

dbo_issue_category_cross
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Issue and Category entities
~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Issue and Category entities.

dbo_issue_pupil_cross
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Issue and Pupil entities
~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Issue and Pupil entities.

dbo_issues_authorized_persons_cross
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Issue and Person entities
Represents many to many relation between Issue and Person entities.

dbo_log_event
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents LogEvent entity
~~~~~~~~~~~~~
Represents LogEvent entity.

dbo_person
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Person entity
~~~~~~~~~~
Represents Person entity.

dbo_person_address
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Address embeddable in Person
~~~~~~~~~~~~~~~~~~
Represents Address embeddable in Person.

dbo_person_email
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Email embeddable in Person
~~~~~~~~~~~~~~~~
Represents Email embeddable in Person.

dbo_person_phone
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Phone embeddable in Person
~~~~~~~~~~~~~~~~
Represents Phone embeddable in Person.

dbo_priority
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Priority entity
~~~~~~~~~~~~
Represents Priority entity.

dbo_pupil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Pupil entity
~~~~~~~~~
Represents Pupil entity.

dbo_pupil_after_school_center_schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents AfterSchoolCenterSchema embeddable in Pupil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents AfterSchoolCenterSchema embeddable in Pupil.

dbo_pupil_guardians_cross
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Pupil and Guardian entities
~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Pupil and Guardian entities.

dbo_role
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Role entity
~~~~~~~~
Represents Role entity.

dbo_role_permission_cross
~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between Role and Permission entities.

dbo_school
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents School entity
~~~~~~~~~~
Represents School entity.

dbo_school_class
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents SchoolClass entity
~~~~~~~~~~~~~~~~
Represents SchoolClass entity.

dbo_school_class_diaries
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Diary embeddable in SchoolClass
~~~~~~~~~~~~~~~~~~~~~~~~
Represents Diary embeddable in SchoolClass.

dbo_school_service_cross
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents ServiceTypeEnum element collection, which equals embeddable in School
~~~~~~~~~~~~~~~~~~~~~~~~
Represents ServiceTypeEnum element collection, which equals embeddable in School.

dbo_school_transport
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents SchoolTransport entity

dbo_semester
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Semester entity
~~~~~~~~~~~~~~~~~~~~
Represents SchoolTransport entity.

dbo_status
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Status entity
~~~~~~~~~~
Represents Status entity.

dbo_truancy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents Truancy entity
~~~~~~~~~~~
Represents Truancy entity.

dbo_user
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents User entity
~~~~~~~~
Represents User entity.

dbo_user_roles_cross
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between User and Role entities
~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between User and Role entities.

AUTHORIZATION TABLES
---------------------
--------------------

oauth_access_token
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~
Represents AccessToken entity. Managed by Spring Security.

oauth_refresh_token
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~
Represents RefreshToken entity. Managed by Spring Security.

dbo_oauth_client_details
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents JpaClientDetails entity
~~~~~~~~~~~~~~~~~~~~~~~~
Represents JpaClientDetails entity.

dbo_oauth_client_additional_info
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Element collection in JpaClientDetails
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Element collection in JpaClientDetails.

dbo_oauth_client_garant_types
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Element collection in JpaClientDetails
dbo_oauth_client_grant_types
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Element collection in JpaClientDetails.

dbo_oauth_client_redirect_uris
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Element collection in JpaClientDetails
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Element collection in JpaClientDetails.

dbo_oauth_client_resources
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Element collection in JpaClientDetails
~~~~~~~~~~~~~~~~~~~~~~~~~~
Element collection in JpaClientDetails.

dbo_oauth_client_roles_cross
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between JpaClientDetails and Role entities

dbo_oauth_client_scope
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Element collection in JpaClientDetails
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Represents many to many relation between JpaClientDetails and Role entities.
Binary file modified docs/images/classDiagram.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/databaseDiagram.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/jpaEntitiesDiagram.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 43cd3a4

Please sign in to comment.