I'm getting the following error when I login -> ActionFilter gets user's
information -> UserAction class gets more information:

2003-02-06 15:29:43,312  ERROR
cirrus.hibernate.helpers.JDBCExceptionReporter  - ORA-01779: cannot modify a
column which maps to a non key-preserved table

If I login -> ActionFilter - JSP, I'm fine.  I don't know if this has
anything to do with Hibernate, but I *think* it might have something to do
with my Hibernate session instantiation.

In ActionFilter I have:

        public static Session getSession() throws HibernateException,
SQLException {
                return ServiceLocator.currentSession();
        }

I'm calling this in both ActionFilter and in UserAction.

ServiceLocator is a ThreadLocal-enabled class with the following
currentSession() method:

    public static Session currentSession()
      throws HibernateException, SQLException {
        Session s = (Session) session.get();
                
        if (s == null) {

            s = sf.openSession();

            if (log.isDebugEnabled()) {
                log.debug("Opened hibernate session.");
            }

            session.set(s);
        }

        return s;
    }

The debug statement is only called once in the first sequence I described -
so it doesn't *seem* like a Session issue, but who knows.

Thanks,

Matt



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Reply via email to