title: Scala Enumeration Data As String?
body: <p>Is possible that an enumeration data type in Scala can be implemented as String as</p>
  
  <pre><code>enum Currency {CAD, EUR, USD }
  </code></pre>
  
  <p>in Java instead of</p>
  
  <pre><code>object Currency extends Enumeration {
  
    val CAD, EUR, USD = Value
  }
  </code></pre>
  
  <p>which data value is binary?</p>
  
  <p>I write a same functionality in both Java and Scala. The enumeration data is saved into database. The Java version works nicely with String value, but not the Scala version which is binary data.</p>