I have a method
public static <T> T createObject(Class<T> t){
}
You see, I want to get a instance of T.
I know this can be realized, because:
public <T> T find(Object id, Class<T> type) {
return (T) this.em.find(type, id);
}
Help me........