Re: OSUser and Hibernate: couple of questions

"Ilja" <[email protected]>
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <[email protected]>
Did you see my configuration file 2 emails back? Anyway, in case you
missed it, here comes:

<opensymphony-user> 
    <provider
    class="com.opensymphony.user.provider.hibernate.HibernateAccessProvider"

        <property
        name="hibernate.connection.datasource">java:comp/env/jdbc/Mathesis</property>
        <property
        name="hibernate.dialect">net.sf.hibernate.dialect.MySQLDialect</property>
        <property name="autocommit">false</property>
        <property name="create.tables">false</property>
    </provider>
    <provider
    class="com.opensymphony.user.provider.hibernate.HibernateCredentialsProvider"

        <property
        name="hibernate.connection.datasource">java:comp/env/jdbc/Mathesis</property>
        <property
        name="hibernate.dialect">net.sf.hibernate.dialect.MySQLDialect</property>
        <property name="autocommit">false</property>
        <property name="create.tables">false</property>
    </provider>
    <provider
    class="com.opensymphony.user.provider.hibernate.HibernateProfileProvider"

        <property
        name="hibernate.connection.datasource">java:comp/env/jdbc/Mathesis</property>
        <property
        name="hibernate.dialect">net.sf.hibernate.dialect.MySQLDialect</property>
        <property name="autocommit">false</property>
        <property name="create.tables">false</property>
    </provider>
 </opensymphony-user>

It looks like the sessionfactory isn't passed through properly, anyway,
that's what it looks like in HibernatePropertySetDAOIMPL:

            session = this.sessionFactory.openSession();

Ilja


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.