Query cache bug, which produces wrong results (#1584)

This commit is contained in:
Roland Praml
2018-12-21 11:55:07 +13:00
committed by Rob Bygrave
parent baa3909c63
commit b403942491
8 changed files with 287 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
package org.tests.query.cache;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
public class Position {
@Id
@GeneratedValue
protected Long id;
@ManyToOne(cascade = {}, optional = false)
private Contract contract;
public Long getId() {
return id;
}
public void setId(final Long id) {
this.id = id;
}
public Contract getContract() {
return contract;
}
public void setContract(final Contract contract) {
this.contract = contract;
}
}