19 package org.turro.member.db.entities;
21 import java.io.Serializable;
22 import javax.persistence.Entity;
23 import javax.persistence.Id;
24 import javax.persistence.IdClass;
25 import org.turro.dossier.db.DossierPU;
26 import org.turro.dossier.entity.ProjectGrant;
27 import org.turro.jpa.entity.IDaoEntity;
28 import org.turro.string.Strings;
35 @IdClass(AxProjectGrantPublicPK.class)
38 @Id
private String serverDomain;
39 @Id
private String projectGrantId;
46 this.serverDomain = serverDomain;
50 return projectGrantId;
54 this.projectGrantId = projectGrantId;
62 return Strings.isBlank(projectGrantId) ? null :
63 (projectGrant ==
null ?
new DossierPU().find(
ProjectGrant.class, Long.valueOf(projectGrantId)) : projectGrant);
67 this.projectGrant = projectGrant;
68 this.projectGrantId = projectGrant ==
null ? null : Long.toString(projectGrant.
getId());
80 return Strings.isBlank(serverDomain) ||
81 Strings.isBlank(projectGrantId);
static AxProjectGrantPublicPK from(AxProjectGrantPublic pg)
void setServerDomain(String serverDomain)
void setProjectGrant(ProjectGrant projectGrant)
void setProjectGrantId(String projectGrantId)
ProjectGrant getProjectGrant()
String getProjectGrantId()