Revision: 33293
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 7, 2010 19:36 by virgium03hotmailcom
Initial Code
public <T> T add(final T obj) { return get(obj.getClass(), (Long) getHibernateTemplate().save(obj)); } public final <T> T get(final Class<T> clazz, final Long id) { return (T) getHibernateTemplate().get(clazz, id); }
Initial URL
Initial Description
Initial Title
Adding an entity in a generic way using Hibernate
Initial Tags
Initial Language
Java