@@ -0,0 +1,1821 @@
+package com.alvazan.orm.impl.meta.data;%0A%0Aimport java.util.List;%0A%0Aimport com.alvazan.orm.api.z5api.NoSqlSession;%0Aimport com.alvazan.orm.api.z8spi.Row;%0Aimport com.alvazan.orm.api.z8spi.action.Column;%0Aimport com.alvazan.orm.api.z8spi.meta.DboColumnMarkerMeta;%0Aimport com.alvazan.orm.api.z8spi.meta.DboColumnMeta;%0Aimport com.alvazan.orm.api.z8spi.meta.IndexData;%0Aimport com.alvazan.orm.api.z8spi.meta.InfoForIndex;%0A%0A/** field type used for entity marker support. It has constant empty value */ %0Apublic class MetaMarkerField%3COWNER%3E extends MetaAbstractField%3COWNER%3E %7B%0A%0A%09/** field value */%0A%09private final static byte%5B%5D marker = new byte%5B0%5D;%0A%09/** column name */%0A%09private final static byte%5B%5D column = new byte%5B%5D %7B '_' %7D;%0A%0A%09@Override%0A%09public void translateFromColumn(Row column, OWNER entity,%0A%09%09%09NoSqlSession session) %7B%0A%09%09/* we do not load field from database because marker field is constant */%0A%09%09/* and we do not modify entity because marker field is virtual */%0A%09%7D%0A%0A%09@Override%0A%09public void translateToColumn(InfoForIndex%3COWNER%3E info) %7B%0A%09%09Column col = new Column();%0A%09%09col.setName(column);%0A%09%09col.setValue(marker);%0A%09%09info.getRow().getColumns().add(col);%0A%09%7D%0A%0A%09@Override%0A%09public void removingEntity(InfoForIndex%3COWNER%3E info,%0A%09%09%09List%3CIndexData%3E indexRemoves, byte%5B%5D rowKey) %7B%0A%09%09/* since there are no indexes, nothing needs to be done */%0A%09%7D%0A%0A%09@Override%0A%09public byte%5B%5D translateValue(Object value) %7B%0A%09%09return marker;%0A%09%7D%0A%0A%09@Override%0A%09public Object fetchField(Object entity) %7B%0A%09%09/* this field is virtual */%0A%09%09return marker;%0A%09%7D%0A%0A%09@Override%0A%09public String translateToString(Object fieldsValue) %7B%0A%09%09return %22%22;%0A%09%7D%0A%0A%09@Override%0A%09public DboColumnMeta getMetaDbo() %7B%0A%09%09DboColumnMarkerMeta meta = new DboColumnMarkerMeta();%0A%09%09return meta;%0A%09%7D%0A%0A%09@Override%0A%09protected Object unwrapIfNeeded(Object value) %7B%0A%09%09// no need to unwrap%0A%09%09return value;%0A%09%7D%0A%0A%7D%0A

add Meta marker field type