| .. | .. |
|---|
| 19 | 19 | |
|---|
| 20 | 20 | import org.codehaus.jackson.annotate.JsonAutoDetect; |
|---|
| 21 | 21 | import org.codehaus.jackson.annotate.JsonIgnore; |
|---|
| 22 | +import org.codehaus.jackson.annotate.JsonIgnoreProperties; |
|---|
| 22 | 23 | import org.codehaus.jackson.annotate.JsonProperty; |
|---|
| 23 | 24 | import org.codehaus.jackson.map.annotate.JsonSerialize; |
|---|
| 24 | 25 | |
|---|
| .. | .. |
|---|
| 30 | 31 | @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) |
|---|
| 31 | 32 | @Entity |
|---|
| 32 | 33 | @Table(name = "pack") |
|---|
| 34 | +@JsonIgnoreProperties(ignoreUnknown = true) |
|---|
| 33 | 35 | @NamedQueries( |
|---|
| 34 | 36 | { @NamedQuery(name = "list-packs", query = "SELECT pa FROM Pack pa"),// |
|---|
| 35 | 37 | @NamedQuery(name = "list-packs-by-orgs", query = "SELECT pa FROM Pack pa where pa.organization.id in :list_ids") }) |
|---|
| .. | .. |
|---|
| 222 | 224 | |
|---|
| 223 | 225 | @JsonProperty("created_by_name") |
|---|
| 224 | 226 | public String getCreatedByname() { |
|---|
| 225 | | - return createdBy == null ? null : String.format("%s %s", createdBy.getFirstName(), createdBy.getFirstName()); |
|---|
| 227 | + return createdBy == null ? null : String.format("%s %s (%s)", createdBy.getFirstName(), createdBy.getLastName(), createdBy.getUsername()); |
|---|
| 226 | 228 | } |
|---|
| 227 | 229 | |
|---|
| 228 | 230 | @JsonProperty("licensetype_code") |
|---|