Data Generator MongoDB

Spring Boot Library on API to generate data in mongoDB

License

License

Categories

Categories

Data
GroupId

GroupId

com.github.lejeanbono
ArtifactId

ArtifactId

data-generator-core
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-core

Dependencies

runtime (6)

Group / Artifact Type Version
org.springframework : spring-context jar 5.2.7.RELEASE
org.jeasy : easy-random-core jar 4.2.0
com.fasterxml.jackson.core : jackson-databind jar 2.11.1
com.fasterxml.jackson.datatype : jackson-datatype-jsr310 jar 2.11.1
org.projectlombok : lombok jar 1.18.12
com.google.code.gson : gson jar 2.8.6

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