Re: OSUser and Hibernate: couple of questions

"Ilja" <[email protected]>
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <[email protected]>
I think so, a simple example with adding and retreiving users (by only
specifying a username) works:

<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>

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.