/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.tasktoys.archelon.data.entity;

/**
 *
 * @author yutaka
 */
public class OAuthAccount {
    
    private String id;
        private String accessToken;
        private String accessSecret;

        public OAuthAccount() {
            //
        }

        public OAuthAccount(String id, String accessToken, String accessSecret) {
            this.id = id;
            this.accessToken = accessToken;
            this.accessSecret = accessSecret;
        }

        public String getId() {
            return id;
        }

        public String getAccessToken() {
            return accessToken;
        }

        public String getAccessSecret() {
            return accessSecret;
        }

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

        public void setAccessToken(String accessToken) {
            this.accessToken = accessToken;
        }

        public void setAccessSecret(String accessSecret) {
            this.accessSecret = accessSecret;
        }
        
        public boolean validate() {
            if (accessToken == null || accessSecret == null)
                return false;
            return true;
        }
}

/*
 * Copyright(C) 2014 tAsktoys Project. All rights reserved.
 */
package com.tasktoys.archelon.data.entity;

/**
 *
 * @author mikan
 */
public class OAuthAccount {
    
    private String id;
        private String accessToken;
        private String accessSecret;

        public OAuthAccount() {
            //
        }

        public OAuthAccount(String id, String accessToken, String accessSecret) {
            this.id = id;
            this.accessToken = accessToken;
            this.accessSecret = accessSecret;
        }

        public String getId() {
            return id;
        }

        public String getAccessToken() {
            return accessToken;
        }

        public String getAccessSecret() {
            return accessSecret;
        }

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

        public void setAccessToken(String accessToken) {
            this.accessToken = accessToken;
        }

        public void setAccessSecret(String accessSecret) {
            this.accessSecret = accessSecret;
        }
        
        public boolean validate() {
            if (accessToken == null || accessSecret == null)
                return false;
            return true;
        }
}

Fix OAuthAccount definition.