@Retention(value=SOURCE)
@Target(value=TYPE)
public @interface Entity
Modifier and Type | Optional Element and Description |
---|---|
boolean |
active
Whether update/delete/refresh methods should be generated.
|
boolean |
createInDb
Advanced flag to disable table creation in the database (when set to false).
|
boolean |
generateConstructors
Whether constructors should be generated.
|
Index[] |
indexes
Indexes for the entity.
|
java.lang.String |
nameInDb
Specifies the name on the DB side (e.g. table name) this entity maps to.
|
java.lang.String |
schema
Specifies schema name for the entity: greenDAO can generate independent sets of classes for each schema.
|
public abstract java.lang.String nameInDb
public abstract boolean createInDb
public abstract java.lang.String schema
Available under the Apache License, Version 2.0 - Copyright © 2011-2016 greenrobot.org. All Rights Reserved.