package com.growthbeat.model;

import java.util.Date;

public class Credential extends Model {

	private String id;
	private Date created;
	private Account account;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

}

@@ -51,118 +51,640 @@
 te;%0A
-%0Apublic class Credential extends Model %7B%0A%0A%09private String id;%0A%09private Date created;%0A%09private Account account;
+import java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport org.codehaus.jackson.type.TypeReference;%0A%0Apublic class Credential extends Model %7B%0A%0A%09private String id;%0A%09private Date created;%0A%09private Account account;%0A%0A%09public static List%3CCredential%3E getByConnectionIdAndSecretService(String connectionId, String secretService) %7B%0A%0A%09%09Map%3CString, Object%3E params = new HashMap%3CString, Object%3E();%0A%09%09params.put(%22connectionId%22, connectionId);%0A%09%09params.put(%22secretService%22, secretService);%0A%0A%09%09List%3CCredential%3E credentials = get(1, %22credentials%22, params, new TypeReference%3CList%3CCredential%3E%3E() %7B%0A%09%09%7D);%0A%0A%09%09return credentials;%0A%0A%09%7D
 %0A%0A%09p

Implement Credential#getByConnectionIdAndSecretService method