Dev

[OutSystems] Database Entities

Aiden(에이든) 2022. 10. 17. 18:10

로우-코드 플랫폼인 OutSystems(이하 아웃시스템즈)에 무료 온라인 교육과정을 들으면서 기억해두면 좋을 것들을 기록으로 남겨봅니다. 

 

Modeling Data 과정에서 Database Entites에 대한 과정의 내용입니다.

 

What is an Entity?

An Entity is an element that allows us to persist and access information that is needed in our applications.

엔터티는 애플리케이션에 필요한 정보를 유지하고 액세스할 수 있게 해주는 요소입니다.

 

  • Each business concept should be represented as an Entity.
    각 비즈니스 개념은 엔터티로 표현되어야 합니다.
  • Entity data is persisted in a Database Table.
    엔터티 데이터는 데이터베이스 테이블에 유지됩니다.
    - Each new record of an Entity is inserted as a row on the corresponding table.
      엔티의 각 새 레코드는 해당 테이블의 행으로 삽입됩니다.
  • Entities...
    - store sets of data 데이터 세트를 저장합니다.
    - have attributes 속성을 가지고 있습니다.
    - have entity actions 엔티티 액션을 가지고 있습니다.

 

Id Attribute
  • Automatically created 자동 생성
  • Uniquely identifies the Record on the Entity 엔티티의 레코드를 고유하게 식별합니다.
  • Primary key in DB DB의 PK입니다.
  • Supports relational database operations 관계형 데이터베이스 작업을 지원합니다. (FK로 사용)

 

Attributes
  • Entity data is stored in its attributes 엔티티 데이터는 속성에 저장됩니다.
  • Attributes represent business concets' properties 속성은 비즈니스 개념의 속성을 나타냅니다.
    - Map to a column on the respective database table 각 데이터베이스 테이블의 열에 매핑됩니다.
  • Must have a basic Data Type 기본 데이터 유형이 있어야 합니다.

 

Basic Data Types

출처: OutSystems - 기본 데이터 타입

 

Data Type Inference

When naming a new attribute (or variable), OutSystems tries to infer its type

새 속성(또는 변수)의 이름을 지정할 때, 아웃시스템즈는 해당 유형을 유추하려고 시도합니다.

출처: OutSystems - 데이터 타입 추론

 

Entity Actions
  • Automatically created 자동 생성
  • CRUD data operations
    - Create: CreateCustomer 생성
    - Retrieve: GetCustomer 조회
    - Update: UpdateCustomer 수정
    - Delete: DeleteCustomer 삭제
  • Entity actions can be used directly in the business logic of the application
    엔티티 액션은 어플리케이션의 비즈니스 로직에서 직접 사용할 수 있습니다.

 

출처: OutSystems - 데이터 액션(예시)

 

※ 작성한 모든 자료는 OutSystems Community에 있는 과정에서 발췌한 것입니다. 저작권에 문제가 있다면 댓글을 주시면 삭제하도록 하겠습니다.

 

출처: OutSystems Community > Modeling Data > Database Entities

 

2.1. Database Entities.en-US.mp4 from OutSystems on Vimeo

 

player.vimeo.com

 

728x90