lundi 22 février 2016

How to generate words from specific business area in Java?

I have a design question I have to generate some business objects which contains attributes with some Strings in it. For example

MyObiect
- name
- String businessWord
- revision
- parent

where businessWord is not just random String but has to be from a specific business area. For example : apple, bannna, pear... so What is the best way to do that? To create a file txt with all the business words and to choose random word, to use some H2 embeded DB or other approach?

Then I have to send this objects to external service and they to be saved to some external DB. It is test data generation. But the business areas are different as well as the structure. The data wil lbe used for different systems.

Aucun commentaire:

Enregistrer un commentaire