fwbrasil / activate

Abandoned: Pluggable persistence in Scala
GNU Lesser General Public License v2.1
299 stars 46 forks source link

Provide option for Alias to only affect table column name, not the JSON field name #96

Closed richardallen closed 10 years ago

richardallen commented 10 years ago

Currently, the Alias (if present on a field) will be used as the JSON field name. Please provide the option to only use the Alias as the table column name so the JSON field name can match the Scala field name.

You could take this one step further and provide something like the Jackson JsonProperty annotation (or some other approach) that allows the user to specify what the JSON field name should be.