Implementing hash method in scala classes
<p>I have a base abstract class and several case classes derived from it. I need to have a hash function to identify repeated case objects..Is there any built-in hash method in scala?</p>

<p>for example, I have a base class</p>

<pre><code>abstract class CDR_NOR {
val SUBSCRIBER_ID: String
val CHARGING_ID: String
val NODE_ID: String
val START_TIME: String
val hashvalue:Strng

//hashvalue=this.hashCode().toString() doesn't work here
}
</code></pre>

<p>and also some derived classes as follow:</p>

<pre><code>case class CHG_NOR(Subscriber_ID: String,..., hashvalue:String) extends   CDR_NOR

case class NW_NOR(Subscriber_ID: String,...,hashvalue:String) extends  CDR_NOR
</code></pre>

<p>I need to have a hash function in the base class which make a unique value for each derived class..</p>