Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Dec 14, 2023
1 parent b412484 commit 0dd6dbb
Showing 1 changed file with 30 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@
@NamedQuery(name = "ArchiveFileBean.findByArchived", query = "SELECT a FROM ArchiveFileBean a WHERE a.archived = :archived"),
@NamedQuery(name = "ArchiveFileBean.findByNotice", query = "SELECT a FROM ArchiveFileBean a WHERE a.notice = :notice")})
public class ArchiveFileBean implements Serializable {

@OneToMany(cascade = CascadeType.REMOVE, mappedBy = "archiveFileKey")
private List<ArchiveFileReviewsBean> archiveFileReviewsBeanList;
private static final long serialVersionUID = 1L;
Expand Down Expand Up @@ -729,7 +730,7 @@ public class ArchiveFileBean implements Serializable {
private String custom2;
@Column(name = "custom3")
private String custom3;

@Column(name = "date_created")
@Temporal(TemporalType.TIMESTAMP)
protected Date dateCreated;
Expand All @@ -739,10 +740,10 @@ public class ArchiveFileBean implements Serializable {
@Column(name = "date_archived")
@Temporal(TemporalType.TIMESTAMP)
protected Date dateArchived;

@Column(name = "ext_id")
private String externalId;

@OneToMany(cascade = CascadeType.REMOVE, mappedBy = "archiveFileKey")
private List<ArchiveFileAddressesBean> archiveFileAddressesBeanList;
@OneToMany(cascade = CascadeType.REMOVE, mappedBy = "archiveFileKey")
Expand All @@ -756,7 +757,7 @@ public class ArchiveFileBean implements Serializable {
@JoinColumn(name = "owner_group", referencedColumnName = "id")
@OneToOne(fetch = FetchType.EAGER)
private Group group;

@JoinColumn(name = "root_folder", referencedColumnName = "id")
@OneToOne(cascade = CascadeType.REMOVE)
private CaseFolder rootFolder;
Expand Down Expand Up @@ -793,9 +794,9 @@ public void setName(String name) {
public String getFileNumberMain() {
return fileNumberMain;
}

public String getFileNumber() {
if(this.fileNumberExtension!=null && this.fileNumberExtension.length()>0) {
if (this.fileNumberExtension != null && this.fileNumberExtension.length() > 0) {
return this.fileNumberMain + this.fileNumberExtension;
} else {
return this.fileNumberMain;
Expand Down Expand Up @@ -825,11 +826,11 @@ public void setClaimValue(float claimValue) {
public boolean isArchived() {
return archived;
}

public void setArchived(boolean archived) {
this.archived = archived;
}

public String getNotice() {
return notice;
}
Expand Down Expand Up @@ -874,9 +875,10 @@ public int hashCode() {

@Override
public boolean equals(Object object) {
if(object==null)
if (object == null) {
return false;

}

// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof ArchiveFileBean)) {
return false;
Expand All @@ -901,27 +903,28 @@ public List<ArchiveFileReviewsBean> getArchiveFileReviewsBeanList() {
public void setArchiveFileReviewsBeanList(List<ArchiveFileReviewsBean> archiveFileReviewsBeanList) {
this.archiveFileReviewsBeanList = archiveFileReviewsBeanList;
}

public void addParty(ArchiveFileAddressesBean dto) {
if(this.archiveFileAddressesBeanList==null)
this.archiveFileAddressesBeanList=new ArrayList<>();
if (this.archiveFileAddressesBeanList == null) {
this.archiveFileAddressesBeanList = new ArrayList<>();
}
this.archiveFileAddressesBeanList.add(dto);
}

public void addReview(ArchiveFileReviewsBean dto) {
if(this.archiveFileReviewsBeanList==null)
this.archiveFileReviewsBeanList=new ArrayList<>();
if (this.archiveFileReviewsBeanList == null) {
this.archiveFileReviewsBeanList = new ArrayList<>();
}
this.archiveFileReviewsBeanList.add(dto);
}

public void removeAllParties() {
if(this.archiveFileAddressesBeanList!=null) {
for(int i=this.archiveFileAddressesBeanList.size()-1;i>-1;i--) {
ArchiveFileAddressesBean b=this.archiveFileAddressesBeanList.get(i);
this.archiveFileAddressesBeanList.remove(i);


}
if (this.archiveFileAddressesBeanList != null) {
for (int i = this.archiveFileAddressesBeanList.size() - 1; i > -1; i--) {
ArchiveFileAddressesBean b = this.archiveFileAddressesBeanList.get(i);
this.archiveFileAddressesBeanList.remove(i);

}
}
}

Expand Down Expand Up @@ -1047,7 +1050,8 @@ public List<ArchiveFileFormEntriesBean> getArchiveFileFormEntriesBeanList() {
}

/**
* @param archiveFileFormEntriesBeanList the archiveFileFormEntriesBeanList to set
* @param archiveFileFormEntriesBeanList the archiveFileFormEntriesBeanList
* to set
*/
public void setArchiveFileFormEntriesBeanList(List<ArchiveFileFormEntriesBean> archiveFileFormEntriesBeanList) {
this.archiveFileFormEntriesBeanList = archiveFileFormEntriesBeanList;
Expand Down Expand Up @@ -1150,5 +1154,5 @@ public String getExternalId() {
public void setExternalId(String externalId) {
this.externalId = externalId;
}

}

0 comments on commit 0dd6dbb

Please sign in to comment.