我正在尝试使用org.locationtech.jts.geom.Point
构造函数结果将SqlResultSetMapping
对象返回到POJO中。如果删除Point对象,一切正常,但是有了:
在类com.example.data.Local上找不到合适的构造函数
@SqlResultSetMapping(
name = "PlaceMapping",
classes = [
ConstructorResult(
targetClass = PlaceResource::class,
// need to be in the right order
columns = [
ColumnResult(name = "id", type = Long::class),
ColumnResult(name = "name", type = String::class),
ColumnResult(name = "location", type = Point::class),
...
]
)
]
)
@Entity
class PlaceEntity ...