Aivar
25 Oct 2010

Datatype for account ID

What is the best datatype to store account IDs? Number? String? No! The correct answer is XMLGregorianCalendar .


private XMLGregorianCalendar accountID;


public XMLGregorianCalendar getAccountID()
{
  return accountID;
}


public void setAccountID(XMLGregorianCalendar value)
{
  accountID = value;
}

Our recent stories

A bank built in 8 months - licence confirmed, deadline met

Build or buy? When the client came to us, that question was still open. We recommended building. No vendor lock-in, no paying for features you'll never use, no waiting on someone else's roadmap. A codebase you own. A product you control. They agreed. That put more weight on us - and we were fine with that.