title: Need to understand the Logic of Playframework
body: <p>i have a simple question. if i use <code>play.db.ebean.Model</code> to have my Model extend from Model, how can i save it into DB? more clearly: in Django, the database file is created and i save the object, it will be saved into db file and i dont do any sql statements for retrieving or saving objects.. how does this work in playframework? </p>
  
  <p>lets say i have configured my database file in application.conf file like this: </p>
  
  <pre><code>db.default.driver=org.h2.Driver
  db.default.url="jdbc:h2:tcp://localhost/~/microblogdb"
  db.default.user="sa"
  db.default.password=""
  </code></pre>
  
  <p>now i have a database file somewhere in system. </p>
  
  <p>now i have a Class User which extends Model as i stated above. now i want to save one User object into db. so i will do like this: </p>
  
  <pre><code>User user = new User();
  user.username = "testusername";
  user.fullname = "userfullname";
  user.save();
  </code></pre>
  
  <p>what will happen after that <code>save()</code> call? can i now directly see my User object in database file? </p>
  
  <p>appreciate any help! </p>
  
  <p>many thanks</p>