Skip to content

Commit

Permalink
fixing case issue with Auditable
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmmba8314 committed Feb 17, 2021
1 parent 4e25677 commit cd7fe88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract class Auditable
* String field containing the username of who created this row
*/
@CreatedBy
protected String createdBy;
protected String createdby;

/**
* Date field containing the date and time when the row was created
Expand All @@ -41,13 +41,13 @@ abstract class Auditable
*/
@CreatedDate
@Temporal(TIMESTAMP)
protected Date createdDate;
protected Date createddate;

/**
* String field containing the username of who last modified this row
*/
@LastModifiedBy
protected String lastModifiedBy;
protected String lastmodifiedby;

/**
* Date field containing the data and time when the row was last modified
Expand All @@ -56,5 +56,5 @@ abstract class Auditable
*/
@LastModifiedDate
@Temporal(TIMESTAMP)
protected Date lastModifiedDate;
protected Date lastmodifieddate;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface JobTitleRepository
{
@Transactional
@Modifying
@Query(value = "UPDATE jobtitles SET title = :title, last_modified_by = :uname, last_modified_date = CURRENT_TIMESTAMP WHERE jobtitleid = :jobtitleid",
@Query(value = "UPDATE jobtitles SET title = :title, lastmodifiedby = :uname, lastmodifieddate = CURRENT_TIMESTAMP WHERE jobtitleid = :jobtitleid",
nativeQuery = true)
void updateJobTitle(
String uname,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface JobTitleRepository
{
@Transactional
@Modifying
@Query(value = "UPDATE jobtitles SET title = :title, last_modified_by = :uname, last_modified_date = CURRENT_TIMESTAMP WHERE jobtitleid = :jobtitleid",
@Query(value = "UPDATE jobtitles SET title = :title, lastmodifiedby = :uname, lastmodifieddate = CURRENT_TIMESTAMP WHERE jobtitleid = :jobtitleid",
nativeQuery = true)
void updateJobTitle(
String uname,
Expand Down

0 comments on commit cd7fe88

Please sign in to comment.