Directory

← Back

exampledata

Example data generator

Author

Rating

Popularity

100+

Generates beans with example data of various types

Sample code

ExampleDataGenerator<Person> generator = new ExampleDataGenerator<>(Person.class, 123L);
generator.setData(Person::setId, DataType.ID);
generator.setData(Person::setProfilePicture, DataType.PROFILE_PICTURE_URL);
generator.setData(Person::setFirstName, DataType.FIRST_NAME);
generator.setData(Person::setLastName, DataType.LAST_NAME);
generator.setData(Person::setEmail, DataType.EMAIL);
generator.setData(Person::setTitle, DataType.OCCUPATION);
List<Person> persons = generator.create(100);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Node 10 compatible

Released
2021-03-08
Maturity
TESTED
License
Apache License 2.0

Compatibility

Framework
Vaadin 10+
Browser
N/A

Vaadin Add-on Directory

Find open-source widgets, add-ons, themes, and integrations for your Vaadin application. Vaadin Add-on Directory
The channel for finding, promoting, and distributing Vaadin add-ons.
Online