public static String getModelId(Class model) {
		if (model.isAssignableFrom(Model.class))
			throw new IllegalArgumentException(EXC_NOTAMODEL);
			
		Method[] all = model.getDeclaredMethods();
		
		String id = "";
		boolean found = false;
		for (Method m : all)
		
			/*TODO: make conventions ind. */
			if (m.isAnnotationPresent(Id.class)) {
				found = true;
				id = m.getName().substring(3, m.getName().length());
			}
			
		if (!found) {
			List<Class> supers = CommonStatic.getSupers(model);
			
			if (supers.size() > 1) 
			throw new MalformedModelRuntimeException("You have to define an" +
			" Id for multiple inheritance.");
								
			else if (supers.size() == 1) 
				id = CommonStatic.tableName(
					 supers.get(0)) + getModelId(supers.get(0));
					
			else id = "Id"; /* no inheritance */
		}
								
		return id;
	}