0% found this document useful (0 votes)
5 views12 pages

Database Entities

Uploaded by

shitalmali1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views12 pages

Database Entities

Uploaded by

shitalmali1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Database Entities

Reactive Developer Boot Camp


What you ● What is an Entity?

Entity Attributes
will learn

● Entity Actions
here

2
What is an Entity?

An Entity is an element that allows us

to persist and access information

that is needed in our applications

3
Entity
● 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
4
Id Attribute

● Automatically created

● Uniquely identifies the Record on the Entity

● Primary key in DB

● Supports relational database operations

5
Attributes

● Entity data is stored in its attributes

● Attributes represent business concepts’


properties
○ Map to a column on the respective database
table

● Must have a basic Data Type

6
Basic Data Types

7
Default Values

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

Guess my attribute/Variable Data Type


9
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

10
Questions?

11 11
Thank You!

You might also like