Formatting an ORM Date

Today I got all of my ORM output displayed nicely in the page and then realized that the date format needed changed. In SQL that would have been easy to simply update the query output. It stumped me for a moment. What you need to do is overload the getter. Here's whatI did it to format the date and provide a little extra functionality.

component entityName="enty" persistent="true" extends="coldbox.system.orm.hibernate.ActiveEntity" table="tablename" schema="schemaname" {
	property name="dateTaken" ormtype="date" sqltype="date"; 
	public function getdateTaken( format="mm-dd-yyyy") {
		if( isDefined("dateTaken")) {
			return LSDateFormat( dateTaken, format );
		}
		return;		
	}
}