@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 static void __configureConverter( org.revenj.postgres.ObjectConverter.Reader<Clicked>[] readers, int __index____event_id, int __index___QueuedAt, int __index___ProcessedAt, int __index___date, int __index___number, int __index___bigint, int __index___bool, int __index___en) { readers[__index____event_id] = (item, reader, context) -> { item.URI = org.revenj.postgres.converters.StringConverter.parse(reader, context, false); }; readers[__index___QueuedAt] = (item, reader, context) -> { item.QueuedAt = org.revenj.postgres.converters.TimestampConverter.parse(reader, context, false); }; readers[__index___ProcessedAt] = (item, reader, context) -> { item.ProcessedAt = org.revenj.postgres.converters.TimestampConverter.parse(reader, context, true); }; readers[__index___date] = (item, reader, context) -> { item.date = org.revenj.postgres.converters.DateConverter.parse(reader, true); }; readers[__index___number] = (item, reader, context) -> { item.number = org.revenj.postgres.converters.DecimalConverter.parse(reader, false); }; readers[__index___bigint] = (item, reader, context) -> { item.bigint = org.revenj.postgres.converters.LongConverter.parseNullable(reader); }; readers[__index___bool] = (item, reader, context) -> { { java.util.List<Boolean> __list = org.revenj.postgres.converters.BoolConverter.parseCollection( reader, context, false); if (__list != null) item.bool = new java.util.HashSet<Boolean>(__list); else item.bool = new java.util.HashSet<Boolean>(4); } ; }; readers[__index___en] = (item, reader, context) -> { item.en = gen.model.test.converters.EnConverter.fromReader(reader); }; }
public static void __configureConverterExtended( org.revenj.postgres.ObjectConverter.Reader<Person>[] readers, int __index__extended_birth, int __index__extended_dayOfBirth, int __index__extended_bornOnEvenDay, int __index__extended_AuthorID) { readers[__index__extended_birth] = (item, reader, context) -> { item.birth = org.revenj.postgres.converters.DateConverter.parse(reader, false); return item; }; readers[__index__extended_AuthorID] = (item, reader, context) -> { item.AuthorID = org.revenj.postgres.converters.IntConverter.parse(reader); return item; }; }