Skip to content

Commit

Permalink
update readme file for JdempotentProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
memojja authored Mar 7, 2022
1 parent c1ecab4 commit ee4c069
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ public void consumeMessage(@IdempotentRequestPayload String emailAdress) {
```

If want that idempotencyId in your payload. Put `@JdempotentId` annotation that places the generated idempotency identifier into annotated field.
Can be thought of as @Id annotation in jpa

For example:
Can be thought of as @Id annotation in jpa.

```java
public class IdempotentPaylaod {
Expand All @@ -68,7 +66,7 @@ public class IdempotentPaylaod {
}
```

You might want to handle the name of the field differently to ensure idempotency. Just use @JdempotentProperty annotation needs to get the field name differently and generate the hash
You might want to handle the name of the field differently to ensure idempotency. Just use @JdempotentProperty annotation needs to get the field name differently and generate the hash inspired by jackson (@JsonProperty annotation)

```java
public class IdempotentPaylaod {
Expand Down

0 comments on commit ee4c069

Please sign in to comment.