title: Java Object serialization in scala
body: <p>Pardon me as I am new to Scala. 
  I have created a case class which encapsultes some information. One of the objects i want to take in for that is of JavaClass. As i am using in spark, i would need it to be serializable. How can i do that?
                                </p>
  
  <p>Java class</p>
  
  <pre><code>public class Currency {
  
      public Currency(final BigDecimal amount, final CurrencyUnit unit) {
          //Doing Something
      }
  }
  
  case class ReconEntity(inputCurrency : Currency, outputCurrency : Currency)
  </code></pre>
  
  <p>Using implicit i want to have my serialization code for Currency so that spark can work on ReconEntity. </p>