https://appfuse.dev.java.net/source/browse/appfuse/trunk/data/hibernate/src/main/resources/applicationContext-dao.xml

Pasting a comment from here:

   <!-- If you want to be able to do simple CRUD for new domain objects
without
       having to cast, you don't have create a Dao interface and
implementation
       for that domain object, you simply have to do the following.

       eg... 'fooDao'

   <bean id="fooDao" class="org.appfuse.dao.hibernate.GenericDaoHibernate">
       <constructor-arg value="org.appfuse.model.Foo"/>
       <property name="sessionFactory" ref="sessionFactory"/>
   </bean>

   You will need to create a Dao interface and implementation for that
       domain object if you need more than simple CRUD to occur.
       (finders, bulk update/delete, etc.)
   -->


On 12/11/06, André Faria <[EMAIL PROTECTED]> wrote:


public DaoHibernate(Class<T> persistentClass) {
        this.persistentClass = persistentClass;
}

How Can I declare this bean in Spring Framework?


 --------------------------------------------------------------------- To
unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]

Reply via email to