From 5513511ed7af0307db81f97e820ca29b2211bc6e Mon Sep 17 00:00:00 2001 From: bazar-nazar Date: Thu, 9 Oct 2014 13:19:02 +0400 Subject: [PATCH] readme update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fb4e222..ecc6d5c 100644 --- a/README.md +++ b/README.md @@ -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>() {}; } - ``` +``` * 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