# GORM

Grails Object Relational Mapping (GORM) provides easy way to define your database model and it comes for free with Grails.

The place you need to configure to get GORM up and running is `application.yml`. Grails will create bean `dataSource` based on what we set in `application.yml`. That bean is used for CRUD operations when we work with our database.

> If you want to provide external configuration file, for example you deploy application to several production environments, you can define [external config](http://grails.org/doc/latest/guide/conf.html#configExternalized) and set the database configuration there.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ondrej-kvasnovsky-2.gitbook.io/vaadin-on-grails-3/database/gorm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
