2020import edu .harvard .iq .dataverse .engine .command .DataverseRequest ;
2121
2222@ Entity
23- @ Table (name = "role_assignment_audit " , indexes = {
24- @ Index ( name = "idx_raa_role_assignment_id" , columnList = "role_assignment_id" ),
25- @ Index ( name = "idx_raa_action_type" , columnList = "action_type" ),
26- @ Index ( name = "idx_raa_action_timestamp" , columnList = "action_timestamp" ),
27- @ Index ( name = "idx_raa_action_by_identifier" , columnList = "action_by_identifier" ),
28- @ Index ( name = "idx_raa_assignee_identifier" , columnList = "assignee_identifier" ),
29- @ Index ( name = "idx_raa_role_id" , columnList = "role_id" ),
30- @ Index ( name = "idx_raa_definition_point_id" , columnList = "definition_point_id" )
31- })
23+ @ Table (name = "roleassignmenthistory " , indexes = {
24+ @ Index ( columnList = "role_assignment_id" ),
25+ @ Index ( columnList = "action_type" ),
26+ @ Index ( columnList = "action_timestamp" ),
27+ @ Index ( columnList = "action_by_identifier" ),
28+ @ Index ( columnList = "assignee_identifier" ),
29+ @ Index ( columnList = "role_id" ),
30+ @ Index ( columnList = "definition_point_id" )
31+ })
3232@ NamedQueries ({
3333 @ NamedQuery (name = "RoleAssignmentHistory.findByDefinitionPointId" ,
3434 query = "SELECT ra FROM RoleAssignmentHistory ra WHERE ra.definitionPointId = :definitionPointId ORDER BY ra.roleAssignmentId, ra.actionTimestamp DESC" ),
@@ -41,8 +41,8 @@ public class RoleAssignmentHistory implements Serializable {
4141
4242 @ Id
4343 @ GeneratedValue (strategy = GenerationType .IDENTITY )
44- @ Column (name = "audit_id " )
45- private Long auditId ;
44+ @ Column (name = "entry_id " )
45+ private Long entry_id ;
4646
4747 @ Column (name = "role_assignment_id" )
4848 private Long roleAssignmentId ;
@@ -100,11 +100,11 @@ public RoleAssignmentHistory(RoleAssignment roleAssignment, DataverseRequest req
100100
101101 // Getters and setters
102102 public Long getEntryId () {
103- return auditId ;
103+ return entry_id ;
104104 }
105105
106- public void setAuditId (Long auditId ) {
107- this .auditId = auditId ;
106+ public void setEntryId (Long entryId ) {
107+ this .entry_id = entryId ;
108108 }
109109
110110 public Long getRoleAssignmentId () {
0 commit comments