@Override public PostgresTuple to(gen.model.mixinReference.Resident instance) { if (instance == null) return null; PostgresTuple[] items = new PostgresTuple[columnCount]; items[__index___id] = org.revenj.postgres.converters.UuidConverter.toTuple(instance.getId()); items[__index___birth] = org.revenj.postgres.converters.DateConverter.toTuple(instance.getBirth()); return RecordTuple.from(items); }
public PostgresTuple toExtended(gen.model.test.Detail2 instance) { if (instance == null) return null; PostgresTuple[] items = new PostgresTuple[columnCountExtended]; items[__index__extended_u] = org.revenj.postgres.converters.UrlConverter.toTuple(instance.getU()); items[__index__extended_dd] = org.revenj.postgres.converters.ArrayTuple.create( instance.getDd(), org.revenj.postgres.converters.DoubleConverter::toTuple); items[__index__extended_EntityCompositeid] = org.revenj.postgres.converters.UuidConverter.toTuple(instance.getEntityCompositeid()); items[__index__extended_EntityIndex] = org.revenj.postgres.converters.IntConverter.toTuple(instance.getEntityIndex()); items[__index__extended_Index] = org.revenj.postgres.converters.IntConverter.toTuple(instance.getIndex()); return RecordTuple.from(items); }