### Eclipse Workspace Patch 1.0 #P drools-persistence-jpa Index: src/main/java/org/drools/persistence/processinstance/variabletypes/VariableInstanceInfo.java =================================================================== --- src/main/java/org/drools/persistence/processinstance/variabletypes/VariableInstanceInfo.java (revision 31623) +++ src/main/java/org/drools/persistence/processinstance/variabletypes/VariableInstanceInfo.java (working copy) @@ -30,6 +30,7 @@ @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; + private Long processInstanceId; private String name; private String persister; @@ -37,7 +38,15 @@ return id; } - public String getName() { + public Long getProcessInstanceId() { + return processInstanceId; + } + + public void setProcessInstanceId(Long processInstanceId) { + this.processInstanceId = processInstanceId; + } + + public String getName() { return name; } Index: src/main/java/org/drools/persistence/processinstance/ProcessInstanceInfo.java =================================================================== --- src/main/java/org/drools/persistence/processinstance/ProcessInstanceInfo.java (revision 31623) +++ src/main/java/org/drools/persistence/processinstance/ProcessInstanceInfo.java (working copy) @@ -86,7 +86,7 @@ private @Transient Environment env; @OneToMany(cascade = CascadeType.ALL) - @JoinColumn(name = "processId") + @JoinColumn(name = "processInstanceId") @MapKey(name = "name") private Map variables = new HashMap(); private boolean externalVariables = false;