Update README.md
This commit is contained in:
parent
f005b6b500
commit
da536245db
1 changed files with 16 additions and 2 deletions
18
README.md
18
README.md
|
@ -55,9 +55,9 @@ Active development dependency for Scala 2.11:
|
|||
</repositories>
|
||||
```
|
||||
|
||||
### Example
|
||||
### Simple Example
|
||||
|
||||
Entity definition:
|
||||
Model definition:
|
||||
```
|
||||
@Table("timelines")
|
||||
public interface Timeline {
|
||||
|
@ -120,6 +120,20 @@ public interface Account {
|
|||
}
|
||||
```
|
||||
|
||||
AccountUser model:
|
||||
```
|
||||
@UDT
|
||||
public interface AccountUser {
|
||||
|
||||
String email();
|
||||
|
||||
String firstName();
|
||||
|
||||
String lastName();
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
Abstract repository:
|
||||
```
|
||||
public interface AbstractRepository {
|
||||
|
|
Loading…
Reference in a new issue