mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
HHH-8085 QueryCacheTest.testGetByCompositeId fails on db2-97 -- DB2 SQL
Error: SQLCODE=-613
This commit is contained in:
parent
b5457f37e2
commit
721016cccb
@ -2,6 +2,7 @@
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Embeddable;
|
||||
|
||||
@Embeddable
|
||||
@ -9,13 +10,20 @@ public class StringCompositeKey implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String substation;
|
||||
private String substation;
|
||||
|
||||
private String deviceType;
|
||||
|
||||
private String device;
|
||||
|
||||
private String analog;
|
||||
|
||||
public String getSubstation() {
|
||||
// For some dialects, the sum of a primary key column lengths cannot
|
||||
// be larger than 255 (DB2). Restrict them to a sufficiently
|
||||
// small size. See HHH-8085.
|
||||
|
||||
@Column( length = 50 )
|
||||
public String getSubstation() {
|
||||
return substation;
|
||||
}
|
||||
|
||||
@ -23,6 +31,7 @@ public void setSubstation(String substation) {
|
||||
this.substation = substation;
|
||||
}
|
||||
|
||||
@Column( length = 50 )
|
||||
public String getDeviceType() {
|
||||
return deviceType;
|
||||
}
|
||||
@ -31,6 +40,7 @@ public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
@Column( length = 50 )
|
||||
public String getDevice() {
|
||||
return device;
|
||||
}
|
||||
@ -39,6 +49,7 @@ public void setDevice(String device) {
|
||||
this.device = device;
|
||||
}
|
||||
|
||||
@Column( length = 50 )
|
||||
public String getAnalog() {
|
||||
return analog;
|
||||
}
|
||||
@ -46,6 +57,4 @@ public String getAnalog() {
|
||||
public void setAnalog(String analog) {
|
||||
this.analog = analog;
|
||||
}
|
||||
|
||||
private String analog;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user