private Date deletionDate;
@Column(name = "attribute_group_id")
private long attributeGroupId;
+ @Column(name = "data_profile_id")
+ private long dataProfileId;
// No member for chunks: data are accessed with SQL requests
public GDEFile() {
this.attributeGroupId = attributeGroupId;
}
+ public long getDataProfileId() {
+ return dataProfileId;
+ }
+
+ public void setDataProfileId(long dataProfileId) {
+ this.dataProfileId = dataProfileId;
+ }
+
public static GDEFile fromFileTO(FileTO fto) {
GDEFile f = new GDEFile();
f.checksum = fto.getChecksum();
f.name = fto.getName();
f.updateDate = fto.getUpdateDate();
f.valid = fto.getValid();
+ f.dataProfileId = fto.getDataProfileId();
return f;
}
fto.setName(this.name);
fto.setUpdateDate(this.updateDate);
fto.setValid(this.valid);
+ fto.setDataProfileId(this.dataProfileId);
return fto;
}
@Override
public int hashCode() {
int hash = 5;
- hash = 79 * hash + (int) (this.id ^ (this.id >>> 32));
- hash = 79 * hash + Objects.hashCode(this.name);
- hash = 79 * hash + (int) (this.length ^ (this.length >>> 32));
- hash = 79 * hash + Objects.hashCode(this.checksum);
- hash = 79 * hash + Objects.hashCode(this.creationDate);
- hash = 79 * hash + Objects.hashCode(this.updateDate);
- hash = 79 * hash + Objects.hashCode(this.valid);
- hash = 79 * hash + Objects.hashCode(this.deleted);
- hash = 79 * hash + Objects.hashCode(this.deletionDate);
- hash = 79 * hash + (int) (this.attributeGroupId ^ (this.attributeGroupId >>> 32));
+ hash = 23 * hash + (int) (this.id ^ (this.id >>> 32));
+ hash = 23 * hash + Objects.hashCode(this.name);
+ hash = 23 * hash + (int) (this.length ^ (this.length >>> 32));
+ hash = 23 * hash + Objects.hashCode(this.checksum);
+ hash = 23 * hash + Objects.hashCode(this.creationDate);
+ hash = 23 * hash + Objects.hashCode(this.updateDate);
+ hash = 23 * hash + Objects.hashCode(this.valid);
+ hash = 23 * hash + Objects.hashCode(this.deleted);
+ hash = 23 * hash + Objects.hashCode(this.deletionDate);
+ hash = 23 * hash + (int) (this.attributeGroupId ^ (this.attributeGroupId >>> 32));
+ hash = 23 * hash + (int) (this.dataProfileId ^ (this.dataProfileId >>> 32));
return hash;
}
private Date deletionDate;
@Column(name = "attribute_group_id")
private long attributeGroupId;
+ @Column(name = "profile_id")
+ private long profileId;
public Study() {
}
this.attributeGroupId = attributeGroupId;
}
+ public long getProfileId() {
+ return profileId;
+ }
+
+ public void setProfileId(long profileId) {
+ this.profileId = profileId;
+ }
+
public static Study fromStudyTO(StudyTO sto) {
Study s = new Study();
s.creationDate = sto.getCreationDate();
s.name = sto.getName();
s.updateDate = sto.getUpdateDate();
s.valid = sto.getValid();
+ s.profileId = sto.getProfileId();
return s;
}
sto.setName(this.name);
sto.setUpdateDate(this.updateDate);
sto.setValid(this.valid);
+ sto.setProfileId(this.profileId);
return sto;
}
@Override
public int hashCode() {
int hash = 7;
- hash = 41 * hash + (int) (this.id ^ (this.id >>> 32));
- hash = 41 * hash + Objects.hashCode(this.name);
- hash = 41 * hash + Objects.hashCode(this.creationDate);
- hash = 41 * hash + Objects.hashCode(this.updateDate);
- hash = 41 * hash + Objects.hashCode(this.valid);
- hash = 41 * hash + Objects.hashCode(this.deleted);
- hash = 41 * hash + Objects.hashCode(this.deletionDate);
- hash = 41 * hash + (int) (this.attributeGroupId ^ (this.attributeGroupId >>> 32));
+ hash = 11 * hash + (int) (this.id ^ (this.id >>> 32));
+ hash = 11 * hash + Objects.hashCode(this.name);
+ hash = 11 * hash + Objects.hashCode(this.creationDate);
+ hash = 11 * hash + Objects.hashCode(this.updateDate);
+ hash = 11 * hash + Objects.hashCode(this.valid);
+ hash = 11 * hash + Objects.hashCode(this.deleted);
+ hash = 11 * hash + Objects.hashCode(this.deletionDate);
+ hash = 11 * hash + (int) (this.attributeGroupId ^ (this.attributeGroupId >>> 32));
+ hash = 11 * hash + (int) (this.profileId ^ (this.profileId >>> 32));
return hash;
}
private Date deletionDate;
private long attributeGroupId;
private Collection<ChunkTO> chunkCollection;
+ private long dataProfileId;
public FileTO() {
}
- public FileTO(long id, String name, long length, String checksum, Date creationDate, Date updateDate, Boolean valid, Boolean deleted, Date deletionDate, long attributeGroupId, Collection<ChunkTO> chunkCollection) {
+ public FileTO(long id, String name, long length, String checksum, Date creationDate, Date updateDate, Boolean valid, Boolean deleted, Date deletionDate, long attributeGroupId, Collection<ChunkTO> chunkCollection, long dataProfileId) {
this.id = id;
this.name = name;
this.length = length;
this.deletionDate = deletionDate;
this.attributeGroupId = attributeGroupId;
this.chunkCollection = chunkCollection;
+ this.dataProfileId = dataProfileId;
}
public long getId() {
this.chunkCollection = chunkCollection;
}
+ public long getDataProfileId() {
+ return dataProfileId;
+ }
+
+ public void setDataProfileId(long dataProfileId) {
+ this.dataProfileId = dataProfileId;
+ }
+
}
private Boolean deleted;
private Date deletionDate;
private long attributeGroupId;
+ private long profileId;
public StudyTO() {
}
- public StudyTO(long id, String name, Date creationDate, Date updateDate, Boolean valid, Boolean deleted, Date deletionDate, long attributeGroupId) {
+ public StudyTO(long id, String name, Date creationDate, Date updateDate, Boolean valid, Boolean deleted, Date deletionDate, long attributeGroupId, long profileId) {
this.id = id;
this.name = name;
this.creationDate = creationDate;
this.deleted = deleted;
this.deletionDate = deletionDate;
this.attributeGroupId = attributeGroupId;
+ this.profileId = profileId;
}
public long getId() {
public void setAttributeGroupId(long attributeGroupId) {
this.attributeGroupId = attributeGroupId;
}
+
+ public long getProfileId() {
+ return profileId;
+ }
+
+ public void setProfileId(long profileId) {
+ this.profileId = profileId;
+ }
}
valid boolean,
deleted boolean,
deletion_date timestamp,
- attribute_group_id bigint REFERENCES attribute_group (id)
+ attribute_group_id bigint REFERENCES attribute_group (id),
+ data_profile_id bigint REFERENCES profile (id)
);
DROP TABLE IF EXISTS chunk CASCADE;
valid boolean,
deleted boolean,
deletion_date timestamp,
- attribute_group_id bigint REFERENCES attribute_group (id)
+ attribute_group_id bigint REFERENCES attribute_group (id),
+ profile_id bigint REFERENCES profile (id)
);
/* PROFILES */