title: How to do CRUD operations on domain models using Casbah for MongoDb?
body: <p>There is a tutorial on Casbah:</p>
  
  <p><a href="http://api.mongodb.org/scala/casbah/current/tutorial.html" rel="noreferrer">http://api.mongodb.org/scala/casbah/current/tutorial.html</a></p>
  
  <p>But I find it hard to follow the tutorial as I am still learning Scala.</p>
  
  <p>All I wanted to find out how to do simple CRUD operations using Casbah to begin with
  before I can go more advanced.</p>
  
  <p>Given below domain models:</p>
  
  <pre><code>class Hotel (var name: String, var stars: Int, val address:  Address)
  
  class Address(var street:String, var city: String, var postCode: String)
  
  
  
  val address = new Address(street = "1234 st", city = "edmond", postCode = "1232234", country = "USA" )
  
  
    val hotel = new Hotel(name = "Super Nice", stars = 4, address =  address)
  
  val address2 = new Address(street = "main st", city = "edmond", postCode = "1232234", country = "USA" )
  
  val hotel2 = new Hotel(name = "Big Hotel", stars = 4, address =  address2)
  </code></pre>
  
  <p>Given above what Casbah code is to achieve these tasks?</p>
  
  <p>(1) save both hotels in mongodb</p>
  
  <p>(2) find all hotels that have stars equal to 4 or greater than 4. this should give me 
    a list over which I can iterate</p>
  
  <p>(3) find a hotel by the name "Super Nice" and change its name to "Ultra Nice"</p>
  
  <p>(4) get addresses of all hotels and change country to lower case and save in database</p>