generated from axonivy-market/market-product
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
27 deletions.
There are no files selected for viewing
26 changes: 13 additions & 13 deletions
26
...sion-utils-demo/src/com/axonivy/utils/approvaldecision/demo/entities/ApprovalHistory.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,40 +1,40 @@ | ||
package com.axonivy.utils.approvaldecision.demo.entities; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Id; | ||
import javax.persistence.Table; | ||
import javax.persistence.Column; | ||
|
||
import com.axonivy.utils.approvaldecision.entities.BaseApprovalHistory; | ||
|
||
import ch.ivyteam.ivy.environment.Ivy; | ||
|
||
|
||
@Entity | ||
@Table(name = "ApprovalHistory") | ||
public class ApprovalHistory extends BaseApprovalHistory<String> { | ||
public class ApprovalHistory extends BaseApprovalHistory<Long> { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
@Id | ||
@Column(name = "id") | ||
@GeneratedValue(strategy = GenerationType.AUTO) | ||
private String id; | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "id", unique = true, nullable = false) | ||
private Long id; | ||
|
||
@Override | ||
public String getId() { | ||
return id; | ||
public String getSessionUsername() { | ||
return Ivy.session().getSessionUserName(); | ||
} | ||
|
||
@Override | ||
public void setId(String id) { | ||
this.id = id; | ||
public Long getId() { | ||
return this.id; | ||
} | ||
|
||
@Override | ||
public String getSessionUsername() { | ||
return Ivy.session().getSessionUserName(); | ||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
} |
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