org.bson.codecs.pojo.annotations.BsonProperty Java Examples
The following examples show how to use
org.bson.codecs.pojo.annotations.BsonProperty.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Product.java From micronaut-microservices-poc with Apache License 2.0 | 6 votes |
@BsonCreator public Product( @BsonProperty("code") String code, @BsonProperty("name") String name, @BsonProperty("image") String image, @BsonProperty("description") String description, @BsonProperty("covers") List<Cover> covers, @BsonProperty("questions") List<Question> questions, @BsonProperty("maxNumberOfInsured") int maxNumberOfInsured, @BsonProperty("icon") String icon) { this.code = code; this.name = name; this.image = image; this.description = description; this.covers = covers; this.questions = questions; this.maxNumberOfInsured = maxNumberOfInsured; this.icon = icon; }
Example #2
Source File: ChoiceQuestion.java From micronaut-microservices-poc with Apache License 2.0 | 5 votes |
@BsonCreator public ChoiceQuestion( @BsonProperty("code") String code, @BsonProperty("index") int index, @BsonProperty("text") String text, @BsonProperty("choices") List<Choice> choices) { super(code, index, text); this.choices = choices; }
Example #3
Source File: Cover.java From micronaut-microservices-poc with Apache License 2.0 | 5 votes |
@BsonCreator public Cover( @BsonProperty("code") String code, @BsonProperty("name") String name, @BsonProperty("description") String description, @BsonProperty("optional") boolean optional, @BsonProperty("sumInsured") BigDecimal sumInsured) { this.code = code; this.name = name; this.description = description; this.optional = optional; this.sumInsured = sumInsured; }
Example #4
Source File: DateQuestion.java From micronaut-microservices-poc with Apache License 2.0 | 5 votes |
@BsonCreator public DateQuestion( @BsonProperty("code") String code, @BsonProperty("index") int index, @BsonProperty("text") String text) { super(code, index, text); }
Example #5
Source File: NumericQuestion.java From micronaut-microservices-poc with Apache License 2.0 | 4 votes |
@BsonCreator public NumericQuestion(@BsonProperty("code") String code, @BsonProperty("index") int index, @BsonProperty("text") String text) { super(code, index, text); }
Example #6
Source File: Choice.java From micronaut-microservices-poc with Apache License 2.0 | 4 votes |
@BsonCreator public Choice(@BsonProperty("code") String code, @BsonProperty("label") String label) { this.code = code; this.label = label; }