package edu.duke.cabig.c3pr.domain;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import com.semanticbits.coppa.domain.annotations.RemoteEntity;
import com.semanticbits.coppa.domain.annotations.RemoteUniqueId;

import edu.duke.cabig.c3pr.infrastructure.RemoteHealthcareSiteResolver;

/**
 * @author Ramakrishna
 */

@Entity
@DiscriminatorValue("Remote")
@RemoteEntity(entityResolver = RemoteHealthcareSiteResolver.class)
public class RemoteHealthcareSite extends HealthcareSite {
	private String externalId;
	
	@RemoteUniqueId
	public String getExternalId() {
		return externalId;
	}

	public void setExternalId(String externalId) {
		this.externalId = externalId;
	}
	
	@Override
    public String getNciInstituteCode() {
        return super.getNciInstituteCode();
    }

}
@@ -637,16 +637,91 @@
 %0D%0A%09%7D%0D%0A%0D%0A
+%09public RemoteHealthcareSite() %7B%0D%0A%09%09super();%0D%0A%09%09this.setVersion(0);%0D%0A%09%7D%0D%0A%0D%0A
 %09public 

initialized the version to 0