Deprecating older code without hibernate.