-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4653a99
commit 5c4ff38
Showing
13 changed files
with
111 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,18 +5,19 @@ | |
|
||
/** | ||
* This annotation can be used to specify some configuration of the mapping of an entity to MongoDB. | ||
* It allows to set the following prioperties: | ||
* <ul> | ||
* <li><code>collection</code>: the name of the collection (if not set the name of the entity class will be used)</li> | ||
* <li><code>database</code>: the name of the database (if not set the default from the property | ||
* <code>quarkus.mongodb.database</code> will be used.</li> | ||
* </ul> | ||
* | ||
* @author Loïc Mathieu - [email protected] | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface MongoEntity { | ||
/** | ||
* The name of the collection (if not set the name of the entity class will be used) | ||
*/ | ||
String collection() default ""; | ||
|
||
/** | ||
* the name of the database (if not set the default from the property | ||
* <code>quarkus.mongodb.database</code> will be used. | ||
*/ | ||
String database() default ""; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.