Bekreth / Bekreth/jetedge

Expand the GeneratePojo method to allow for input

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
needs clarification
Dominant language
Java
Stars
6
Forks
8
PR merge metrics
No merged PRs in 30d

Description

There are cases where a Limiter requires correlation with information that is external to the Pojo generator. A new limiter should be constructed to handle this.

```
PojoGenerator generator = new PojoGeneratorBuilder<>(YourPojo.class)
.andLimitField("itemId", new ExternalPropertyLimiter(YourExternalObject.class, Supplier))
.build()

generator.generatePojoUsing(instanceOfExternalObject);

```

Contributor guide

Open the contributing guide

Research direction

Start by locating PojoGenerator, PojoGeneratorBuilder, and the existing limiter implementations referenced by the example. Trace how generatePojo currently receives its input and how limiters obtain values; done means an external object can be supplied to generation and correlated limiter behavior is covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.