Hi,
today i have added some new field definitions to my entities which hibernate doesn't like:
Code:
Caused by: java.lang.IllegalArgumentException: No PropertyTypeExtractor available for type void
at org.hibernate.annotations.common.reflection.java.JavaReflectionManager.toXType(JavaReflectionManager.java:164)
First example: (WORKS)
Code:
private java.lang.Byte[] hasTest19;
I have not mentioned the set / get / and add methods here.
Second ERRONEOUS example:
Code:
@javax.persistence.Column(columnDefinition = "BLOB")
private java.util.HashSet<java.lang.Byte[]> hasTest19a = new java.util.HashSet<java.lang.Byte[]>();
I don't think that the problem results of using arrays in HashSet - but why - BigInteger[] doesn't work either. I tried a lot of classes that all work fine in context of example one. But using them in a HashSet will cause the error.
I'd like to save these values in the database definition BLOB, so i used HashSet and added the @Column annotation, because some databases will use TINYBLOB (was used automatically at hibernate auto dll generation in example one) instead which is to small.
Regards,
Tobias
@20:30 added the set / get and add method :)
Code:
public void setHasTest19a(java.util.HashSet<java.lang.Byte[]> hasTest19a) {
this.hasTest19a = hasTest19a;
}
public java.util.Set<java.lang.Byte[]> getHasTest19a() {
return this.hasTest19a;
}
public void addHasTest19a(java.lang.Byte[] value) {
hasTest19a.add(value);
}
@20:45 changed the get Method from Set to HashSet - NO DIFFERENCE
Code:
public java.util.HashSet<java.lang.Byte[]> getHasTest19a() {
return this.hasTest19a;
}