Comparing version 0.0.1-alpha.4 to 0.0.1-alpha.5
@@ -66,2 +66,11 @@ const Bluebird = require('bluebird') | ||
if (this.defaultFamily) { | ||
values = _.mapKeys(values, (v, k) => { | ||
if (k.indexOf(':') === -1) { | ||
return this.defaultFamily + ':' + k | ||
} | ||
return k | ||
}) | ||
} | ||
_.forOwn(values, (value, col) => { | ||
@@ -141,3 +150,9 @@ if (value === undefined || value === null) { | ||
this.columns.forEach(col => { | ||
ret[col.name] = this.formatCellForGet(rawObject[col.name], col.type) | ||
let colName = col.name | ||
const df = this.defaultFamily | ||
const value = this.formatCellForGet(rawObject[col.name], col.type) | ||
if (df && col.name.indexOf(df) === 0) { | ||
colName = colName.slice(df.length + 1) | ||
} | ||
ret[colName] = value | ||
}) | ||
@@ -144,0 +159,0 @@ return ret |
{ | ||
"name": "hequelize", | ||
"version": "0.0.1-alpha.4", | ||
"version": "0.0.1-alpha.5", | ||
"description": "Simple HBase ORM based on hbase-rpc-client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14277
11
459