package com.tactfactory.mda.orm;

import com.tactfactory.mda.orm.annotation.Column;

public class SqliteAdapter {
	private static String PREFIX = "COL_";

	public static String generateStructure(FieldMetadata field) {
		StringBuilder builder = new StringBuilder();
		
		builder.append(" " + field.type.toLowerCase());
		
		if (field.nullable) {
			builder.append(" not null");
		} else {
			builder.append(" null");
		}
		
		
		return builder.toString();
	}
	
	public static String generateColumnName(FieldMetadata field) {
		return PREFIX + field.name.toUpperCase();
	}
}

@@ -1,44 +1,256 @@
-package com.tactfactory.mda.orm;%0A%0Aimport
+/**%0A * This file is part of the Harmony package.%0A *%0A * (c) Mickael Gaillard %3Cmickael.gaillard@tactfactory.com%3E%0A *%0A * For the full copyright and license information, please view the LICENSE%0A * file that was distributed with this source code.%0A */%0Apackage
  com
@@ -273,26 +273,8 @@
 .orm
-.annotation.Column
 ;%0A%0Ap

Clean project