Skip to content

Commit

Permalink
Merge pull request #125 from ppalaga/160202-jsonignore-uuid
Browse files Browse the repository at this point in the history
@JsonIgnore getIdAsUUID()
  • Loading branch information
jpkrohling committed Feb 2, 2016
2 parents d9b3621 + 62b4565 commit 0c09a76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
</description>

<dependencies>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hawkular.accounts</groupId>
<artifactId>hawkular-accounts-jaxb-adapters</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates
* Copyright 2015-2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -22,6 +22,8 @@
import java.util.UUID;
import java.util.regex.Pattern;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
* Base entity, providing some common properties that all entities should have.
*
Expand Down Expand Up @@ -75,6 +77,7 @@ public BaseEntity(UUID id, ZonedDateTime createdAt, ZonedDateTime updatedAt) {
}
}

@JsonIgnore
public UUID getIdAsUUID() {
return id;
}
Expand Down

0 comments on commit 0c09a76

Please sign in to comment.