title: Parse.com - how to store custom objects
body: <p>I'd like to store my Android application's data in a Parse.com database, but I'm having trouble right now. I'm trying to save my own 'Parent' class. The Parent class has different attributes. Right now I'd like to store these: </p>
  
  <pre><code>private String email;
  private String password;
  </code></pre>
  
  <p>There are more attributes, but atm I'm not filling em up during runtime, will do so later when I know the whole idea works. </p>
  
  <p>I am aware of the classes ParseUser and ParseObject, a user and an object class of Parse, which can be used to store data to their DB. Now my first approach was to let my own Parent class inherit from Parse's ParseUser or ParseObject. That way my class would have access to the Parse's methods, while maintaining my own attributes and methods. I tried that and I don't think it works. It gave a vague error, with no clear error message. (click on the next link for a pic <a href="http://i.imgur.com/orkmjXO.png" rel="nofollow">http://i.imgur.com/orkmjXO.png</a> )</p>
  
  <p>Right now my Userr class inherits from ParseObject. Well not directly, but it has access to ParseObejct's methods. the hierarchy goes like this ParseObject -> (mine) User -> (mine) Parent. Below I pasted the code I use at the point of saving. </p>
  
  <pre><code>Parent user = new Parent();
  user.setEmail(mEmail);
  user.setWachtwoord(mPassword);
  
  user.put(mEmail, user);
  user.saveInBackground();
  </code></pre>
  
  <p>Could anyone help me and tell me how I can store my own classes in Parse? Any kind of help would be appreciated, like possible causes and such. Thanks!</p>