Fixed jackson annotations for a proper marshalling/unmarshalling

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib@153170 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-09-18 13:09:20 +00:00
parent 07dfa4248f
commit 2b10846ee9
2 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public interface Record extends Comparable<Record>, Serializable {
* Return the {@link Record} Type * Return the {@link Record} Type
* @return {@link Record} Type * @return {@link Record} Type
*/ */
@JsonIgnore
public String getRecordType(); public String getRecordType();
@ -76,6 +77,7 @@ public interface Record extends Comparable<Record>, Serializable {
* Return the unique id for this {@link Record} * Return the unique id for this {@link Record}
* @return {@link Record} Unique ID * @return {@link Record} Unique ID
*/ */
@JsonIgnore
public String getId(); public String getId();
/** /**

View File

@ -339,6 +339,7 @@ public abstract class AbstractRecord implements Record {
return timestampToCalendar(millis); return timestampToCalendar(millis);
} }
@JsonIgnore
protected int getOperationCount() { protected int getOperationCount() {
return (Integer) this.resourceProperties.get(AggregatedRecord.OPERATION_COUNT); return (Integer) this.resourceProperties.get(AggregatedRecord.OPERATION_COUNT);
} }
@ -385,6 +386,7 @@ public abstract class AbstractRecord implements Record {
* Return the boolean aggregate by this Record * Return the boolean aggregate by this Record
* @return Boolean Aggregate * @return Boolean Aggregate
*/ */
@JsonIgnore
protected Boolean isAggregated() { protected Boolean isAggregated() {
Boolean bool = (Boolean) this.resourceProperties.get(AggregatedRecord.AGGREGATED); Boolean bool = (Boolean) this.resourceProperties.get(AggregatedRecord.AGGREGATED);
if(bool==null){ if(bool==null){