Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
bazar-nazar committed Oct 9, 2014
1 parent 7a9dbc9 commit 5513511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ Library expects that in your project you have following dependencies
* create object that extends com.bazarnazar.pgjson.PGJsonObject
* add this object as type in @Type to your @Entity and your annotate field or getter for this type where object is stored
* if you want to store collection of objects extend PgJsonCollection and override `getReturnedTypeReference()` like this
```
```java
protected TypeReference getReturnedTypeReference() {
return new TypeReference<Map<String, SomeType>>() {};
}
```
```
* if you want to store HashMap
* simply add com.bazarnazar.pgjson.JsonMapType as type in @Type to your @Entity and your annotate field or getter for this type where Hash map is stored

Expand Down

0 comments on commit 5513511

Please sign in to comment.