Data Generator MongoDB

Spring Boot Library on API to generate data in mongoDB

License

License

Categories

Categories

MongoDB Data Databases
GroupId

GroupId

com.github.lejeanbono
ArtifactId

ArtifactId

data-generator-mongodb
Last Version

Last Version

0.3.2
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

Data Generator MongoDB
Spring Boot Library on API to generate data in mongoDB
Project URL

Project URL

https://github.com/LeJeanbono/data-generator
Project Organization

Project Organization

com.github.lejeanbono
Source Code Management

Source Code Management

https://github.com/LeJeanbono/data-generator

Download data-generator-mongodb

Dependencies

compile (1)

Group / Artifact Type Version
com.github.lejeanbono : data-generator-core jar 0.3.2

runtime (4)

Group / Artifact Type Version
org.springframework : spring-web jar 5.2.7.RELEASE
org.springframework : spring-webmvc jar 5.2.7.RELEASE
org.springframework.data : spring-data-mongodb jar 3.0.1.RELEASE
com.fasterxml.jackson.core : jackson-databind jar 2.11.1

Project Modules

There are no modules declared in this project.

data-generator

CircleCI Codacy Badge codecov

Getting started

Gradle

implementation 'com.github.lejeanbono:data-generator-core:0.3.2'
implementation 'com.github.lejeanbono:data-generator-mongodb:0.3.2'

Maven

<!-- replace here with the latest version -->
<dependency>
    <groupId>com.github.lejeanbono</groupId>
    <artifactId>data-generator-core</artifactId>
    <version>0.3.2</version>
</dependency>
<dependency>
    <groupId>com.github.lejeanbono</groupId>
    <artifactId>data-generator-mongodb</artifactId>
    <version>0.3.2</version>
</dependency>

Activation

Add @EnableDataGenerator and import DataGeneratorMongoDBConfig

@EnableDataGenerator
@SpringBootApplication
@Import(DataGeneratorMongoDBConfig.class)
public class EApplication {
    public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}

In your application.properties :

datagenerator.pluralRessources=true

Use

Add @TestData on bean to give you access at the API

@TestData
public class MyEntity {
    @Id
    private String id;
    private String name;
}

Versions

Version
0.3.2
0.3.1