> i've just started working with hibernate and i want to create a generic
> method that will take a class and id and pass back an object of the
[quoted text clipped - 10 lines]
> thanks,
> deno
// anemic method that does nothing
// a single point of a compile-time warning perhaps?
public <T> T getById(final Class<T> mappedClss, final long id) {
return (T)getSession().get(mappedClss, id);
}
My Hibernate is little rusty, but if this is not what you want, please
clarify. You do realise that you must concede to the compile-time
warning right?

Signature
Tony Morris
http://tmorris.net/
s/Commonwealth Games/Commonwealth Swimming