inheritance « DAO « JPA Q&A





1. Jestate demo application inheritance/xdoclet/hibernate/DAO    forum.hibernate.org

Hello all, I am a recent convert from Entity beans ( it didn't take much to convert me) to Hibernate. I found the Hibernate documentation quite usefull and the Xdoclet hibernate info was quite good as well. However what I found to be lacking was a decent open source implimentation that demonstrated things like inheritance and many to one relationships. I ...

2. Adding more levels of inheritance in generic DAO    forum.hibernate.org

public interface IGenericDao { public T doSomethingGeneric(ID id); } public interface IItemDao extends IGenericDao{ public T doSomethingItem(Long id); } public interface ISuperItemDao extends IGenericDao{ public SuperItem doSomethingMoreSuperItem(Long id); } public class GenericDao implements IGenericDao { public ...