applctv / gcp-scala-datastore

Scala wrapper to Google Cloud Datastore operations
15 stars 16 forks source link

Custom field name #34

Open jacobg opened 5 years ago

jacobg commented 5 years ago

The @Kind annotation is useful to specify a different Kind name than case class name. It would also be useful to rewrite field names by annotating the case class property name, e.g.,

@Kind(value = "LegacyFooKind")
case class Foo(@Field("value = "LegacyBarProperty") bar: String)