Generate sql code from a metamodel.