RWS / odata-jpa-datasource

OData JPA Datasource extension
15 stars 17 forks source link

eitity class use java.lang.Double exception."Found a complex relation type of an unmapped JPA type" #5

Open skynice opened 7 years ago

skynice commented 7 years ago

1.my entity class use java.lang.Double field @Basic @Column(name = "LGTD", nullable = true, length = 13) public Double getLgtd() { return lgtd; } in com.sdl.odata.datasource.jpa.builders.PropertyBuilder throw new JPADataMappingException("Found a complex relation type of an unmapped JPA type"); 2.java.sql.Timestamp @Column(name = "TM", nullable = false) public Timestamp getTm() { return tm; } in com.sdl.odata.edm.model.StructuralPropertyImpl this.typeName = resolver.resolveTypeName(cls); if (isNullOrEmpty(this.typeName)) { throw new IllegalArgumentException("The OData type of this field cannot be determined from " + "the Java type: " + field.toGenericString()); }

kaismh commented 7 years ago

It seems only primitive types are currently supported. So you can use double but not Double. I have not found an alternative to Date. Anyone have any ideas?