| The issue is most likely this property mapping:
@Formula(value = "INT_TO_SERIAL(NETWORK_ID)")
@NotNull
@Size(min=10, max=10)
private String deviceId;
The the code assumes that the property column list would be of type org.hibernate.mapping.Column; however given that you have specified @Formula, it is actually org.hibernate.mapping.Formula. This should be easy to fix because if a @Formula annotation is present, this code block should skip this property. |