let me know the main difference between entity and structure if you give an example it helps a lot.
Hi Sateesh, An entity basically means table, and in an entity, you can only have attributes with basic data types like text, integer, datetime, etc., and you can also have identifier data types, which you can think of as foreign keys, whereas a structure is a complex data type in which you can have attributes that can be of basic data types or of record or list types; you can even have another structure or an entity as an attribute of a structure.I am adding an OML with some examples.
Hi,
Entity is persistent because it will create a table on database.
A structure is a complex object to be used to show or list records on frontend. Also to be used as API outputs when they return record or a list of records, etc
Entities are abstractions of tables in Database. They store information in a persistent way.
Structures don't have the persistent capability. They are used to manipulate and handle data during logic processes and mappings. They can be used to abstract the data model p.e..
You can check more about this topic here:
https://www.outsystems.com/forums/discussion/77331/structure-and-records/
Note that this is Outsystems Basics. Maybe you want to check Outsystems guided paths to learn about this and other things with more context.
You can check about Structures here:
https://success.outsystems.com/documentation/11/reference/outsystems_language/data/data_types/structure/
You can check about Entities here:
https://success.outsystems.com/documentation/11/developing_an_application/use_data/data_modeling/entities/
Hope this can help.
Best regards,
Ricardo Pereira