package net.etalia.client.domain;

import java.util.HashMap;
import java.util.Map;

public class Entity {

	private String id;
	private String title;
	private Map<String, Object> extraData = new HashMap<String, Object>();

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Map<String,Object> getExtraData() {
		return extraData;
	}
	@SuppressWarnings("unchecked")
	public <T> T getExtraData(String name) {
		if (extraData == null) return null;
		return (T)extraData.get(name);
	}

}

@@ -632,12 +632,213 @@
 ame);%0A%09%7D
+%0A%09public %3CT%3E T setExtraData(String name, Object value) %7B%0A%09%09if (extraData == null) extraData = new HashMap%3CString, Object%3E();%0A%09%09T ret = getExtraData(name);%0A%09%09extraData.put(name, value);%0A%09%09return ret;%0A%09%7D
 %0A%0A%7D%0A

Add setExtraData to Entity