Using Spring Boot/Hibernate/Jpa i have a model in which i defined:
@Column(name="greenRange", nullable = true)
private int[] greenRange;
public int[] getGreenRange() {
return greenRange;
}
public void setGreenRange(int[] greenRange) {
this.greenRange = greenRange;
}
and a simple test method that sets the range to a 2 element array containing ints 2 and 8.
Now, once the values have been persisted, the value of the column is
ACED0005757200025B494DBA602676EAB2A50200007870000000020000000100000008
What could this be?
EDIT: The datatype of the column is RAW. EDIT2: Using Oracle SQL Developer. I am able to print the value after accessing the entity again.
Array.length array[0] array[1]
[000000002][00000001][00000008]
?
[ACED0005757200025B494DBA602676EAB2A5020000787]