greenrobot/greenDAO — pull request #48 by DayS (2012-07-07 11:49:57+00:00)
Title: Fix toOne getters with detached entity and add SQLCipher support

The first commit will fix a bug I found when we create a plain new object of the model.

Let's assumes we have two objects A and B with a toOne dependency from A to B. So, the following code will crash :
```java
A a = new A();
B b = new B();
a.setB(b);

a.getB(); // will throw a DaoException("Entity is detached from DAO context");
```
But we don't want to load B instance from the database but just retrieve the value we set juste before.

The second commit will add SQLCipher support. To do that I had to create a whole bunch of wrappers because of SQLCipher implementation... See my comment here for more explanations https://github.com/greenrobot/greenDAO/issues/6