Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimizing imports, added some project functionality
- Loading branch information
Showing
15 changed files
with
77 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 6 additions & 82 deletions
88
src/main/java/ca/bcit/infosys/comp4911/domain/PayLevel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,8 @@ | ||
package ca.bcit.infosys.comp4911.domain; | ||
|
||
import javax.persistence.Entity; | ||
import java.io.Serializable; | ||
import javax.persistence.Id; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Column; | ||
import javax.persistence.Version; | ||
import java.lang.Override; | ||
|
||
/** Propose to Delete this class, Unnecessary */ | ||
@Entity | ||
public class PayLevel implements Serializable { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.AUTO) | ||
@Column(name = "id", updatable = false, nullable = false) | ||
private Integer id = null; | ||
|
||
@Version | ||
@Column(name = "version") | ||
private int version = 0; | ||
|
||
@Column | ||
private String payLevelName; | ||
|
||
public Integer getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(final Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public int getVersion() { | ||
return this.version; | ||
} | ||
|
||
public void setVersion(final int version) { | ||
this.version = version; | ||
} | ||
|
||
public String getPayLevelName() { | ||
return this.payLevelName; | ||
} | ||
|
||
public void setPayLevelName(final String payLevelName) { | ||
this.payLevelName = payLevelName; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object that) { | ||
if (this == that) { | ||
return true; | ||
} | ||
if (that == null) { | ||
return false; | ||
} | ||
if (getClass() != that.getClass()) { | ||
return false; | ||
} | ||
if (id != null) { | ||
return id.equals(((PayLevel) that).id); | ||
} | ||
return super.equals(that); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
if (id != null) { | ||
return id.hashCode(); | ||
} | ||
return super.hashCode(); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
String result = getClass().getSimpleName() + " "; | ||
if (payLevelName != null && !payLevelName.trim().isEmpty()) | ||
result += "payLevelName: " + payLevelName; | ||
return result; | ||
} | ||
} | ||
/** | ||
* Pay Level Values | ||
*/ | ||
public enum PayLevel { | ||
P1, P2, P3, P4, P5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 5 additions & 16 deletions
21
src/main/java/ca/bcit/infosys/comp4911/domain/Timesheet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.