I’m trying to set the type of a column in OpenJPA as binary(5) so I’m using the following declaration:
@Column(name="MY_FIELD", columnDefinition="BINARY(5)")
public byte[] getMyField() {
return myField;
}
However, the column is always created as a blob:
| MY_FIELD | blob | YES | | NULL | |
Any clues on getting this to work?
This is a bug in OpenJPA, introduced by OPENJPA-740. I’ve opened a bug report on your behalf: OPENJPA-1870.