Skip to content

Commit

Permalink
updates annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviojava committed Feb 5, 2019
1 parent 06de98b commit 633a12c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion specification/src/main/asciidoc/annotations.adoc
Expand Up @@ -337,7 +337,12 @@ The benefit of using this qualifier instead of creating a new one is that if the

==== ConfigurationUnit

Storage of the database's configuration such as password and users outside the code is important; Eclipse JNoSQL has the `ConfigurationUnit` annotation that reads the configuration from a file such as XML, YAML, and JSON file. The default configuration structure is within either a **META-INF** or **WEB-INF** folder.
Storage of the database's configuration such as password and users outside the code is important; Eclipse JNoSQL has the `ConfigurationUnit` annotation that reads the configuration from a file such as XML, YAML, and JSON file. The default configuration structure is within either a **META-INF** or **WEB-INF** folder. The ConfigurationUnit has three fields.

* *fileName*: the field name at the folder, the default value is `jnosql.json`
* *name*: the name works as ID to find the respective configuration. The default value is empty which will work when there is just a configuration at the file.
* *database*: to inject the Template, Repository and manager communication the database name is required.



===== Injection of the code
Expand Down

0 comments on commit 633a12c

Please sign in to comment.