Search in sources :

Example 1 with DbJsonB

use of io.ebean.annotation.DbJsonB in project ebean by ebean-orm.

the class AnnotationFields method initDbJson.

private void initDbJson(DeployBeanProperty prop) {
    DbComment comment = get(prop, DbComment.class);
    if (comment != null) {
        prop.setDbComment(comment.value());
    }
    DbMap dbMap = get(prop, DbMap.class);
    if (dbMap != null) {
        util.setDbMap(prop, dbMap);
        setColumnName(prop, dbMap.name());
    }
    DbJson dbJson = get(prop, DbJson.class);
    if (dbJson != null) {
        util.setDbJsonType(prop, dbJson);
        setColumnName(prop, dbJson.name());
    } else {
        DbJsonB dbJsonB = get(prop, DbJsonB.class);
        if (dbJsonB != null) {
            util.setDbJsonBType(prop, dbJsonB);
            setColumnName(prop, dbJsonB.name());
        }
    }
    DbArray dbArray = get(prop, DbArray.class);
    if (dbArray != null) {
        util.setDbArray(prop, dbArray);
        setColumnName(prop, dbArray.name());
    }
}
Also used : DbMap(io.ebean.annotation.DbMap) DbJson(io.ebean.annotation.DbJson) DbJsonB(io.ebean.annotation.DbJsonB) DbArray(io.ebean.annotation.DbArray) DbComment(io.ebean.annotation.DbComment)

Aggregations

DbArray (io.ebean.annotation.DbArray)1 DbComment (io.ebean.annotation.DbComment)1 DbJson (io.ebean.annotation.DbJson)1 DbJsonB (io.ebean.annotation.DbJsonB)1 DbMap (io.ebean.annotation.DbMap)1