// Path: source-samples/simple/src/main/java/com/samples/Person.java
// @Entity("person")
// public class Person {
// 
//   @Field("name")
//   String name;
// 
//   @Field("age")
//   int age;
// 
//   public Person() {
//   }
// 
//   public Person(String name, Integer age) {
//     this.name = name;
//     this.age = age;
//   }
// 
//   public String getName() {
//     return name;
//   }
// 
//   public Integer getAge() {
//     return age;
//   }
// }
// 
// Path: source-samples/objects/src/main/java/com/samples/Person$$Mapper.java
// public class Person$$Mapper implements Mapper<Person> {
//   public Address$$Mapper addressMapper;
// 
//   @Override
//   public Person toObject(Map<String, Object> properties) {
//     final Person object = new Person();
//     if (properties.get("address") != null) {
//       object.address = addressMapper.toObject((Map<String, Object>) properties.get("address"));
//     } else if (!properties.containsKey("address")) {
//       throw new IllegalStateException("The property \"address\" is not set.");
//     } else {
//       object.address = null;
//     }
//     return object;
//   }
// 
//   @Override
//   public Map<String, Object> toProperties(Person object) {
//     final Map<String, Object> properties = new HashMap<>();
//     properties.put("type", "person");
//     properties.put("address", object.address == null ? null : addressMapper.toProperties(object.address));
//     return properties;
//   }
// }


import com.samples.Person;
import com.samples.Person$$Mapper;
package com.braisgabin.couchbaseliteorm;


/**
 * Created by brais on 7/1/15.
 */
class CouchbaseLiteOrmInternal extends CouchbaseLiteOrm {
  CouchbaseLiteOrmInternal() {
    final Person$$Mapper personMapper = new Person$$Mapper();
// Path: source-samples/simple/src/main/java/com/samples/Person.java
// @Entity("person")
// public class Person {
// 
//   @Field("name")
//   String name;
// 
//   @Field("age")
//   int age;
// 
//   public Person() {
//   }
// 
//   public Person(String name, Integer age) {
//     this.name = name;
//     this.age = age;
//   }
// 
//   public String getName() {
//     return name;
//   }
// 
//   public Integer getAge() {
//     return age;
//   }
// }
// 
// Path: source-samples/objects/src/main/java/com/samples/Person$$Mapper.java
// public class Person$$Mapper implements Mapper<Person> {
//   public Address$$Mapper addressMapper;
// 
//   @Override
//   public Person toObject(Map<String, Object> properties) {
//     final Person object = new Person();
//     if (properties.get("address") != null) {
//       object.address = addressMapper.toObject((Map<String, Object>) properties.get("address"));
//     } else if (!properties.containsKey("address")) {
//       throw new IllegalStateException("The property \"address\" is not set.");
//     } else {
//       object.address = null;
//     }
//     return object;
//   }
// 
//   @Override
//   public Map<String, Object> toProperties(Person object) {
//     final Map<String, Object> properties = new HashMap<>();
//     properties.put("type", "person");
//     properties.put("address", object.address == null ? null : addressMapper.toProperties(object.address));
//     return properties;
//   }
// }


// Path: source-samples/simple/src/main/java/com/braisgabin/couchbaseliteorm/CouchbaseLiteOrmInternal.java
import com.samples.Person;
import com.samples.Person$$Mapper;

package com.braisgabin.couchbaseliteorm;


/**
 * Created by brais on 7/1/15.
 */
class CouchbaseLiteOrmInternal extends CouchbaseLiteOrm {
  CouchbaseLiteOrmInternal() {
    final Person$$Mapper personMapper = new Person$$Mapper();
    registerType("person", Person.class, personMapper);