@Override
public void put(PartakeConnection con, UserSentMessage t) throws DAOException {
Postgres9Connection pcon = (Postgres9Connection) con;
// TODO: Why User does not have createdAt and modifiedAt?
Postgres9Entity entity = new Postgres9Entity(t.getId(), CURRENT_VERSION, t.toJSON().toString().getBytes(UTF8), null, TimeUtil.getCurrentDateTime());
if (entityDao.exists(pcon, t.getId()))
entityDao.update(pcon, entity);
else
entityDao.insert(pcon, entity);
indexDao.put(pcon, new String[] { "id", "senderId", "createdAt" }, new Object[] { t.getId().toString(), t.getSenderId(), t.getCreatedAt() } );