Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:1.0.0.0
Mapping documents: the row which i mentioned
Code between sessionFactory.openSession() and session.close():
#region Constructor
public DBScope(TransactionOption option)
{
if (session == null)
{
session = sessionFactory.OpenSession();
m_isSessionOwner = true;
}
if ((tx == null) && (option == TransactionOption.On))
{
tx = session.BeginTransaction();
m_isTxOwner = true;
}
}
#endregion
#region IDBScope Members
void IDBScope.Complete()
{
m_isComplete = true;
}
#endregion
#region IDisposable Members
public void Dispose()
{
if (m_isTxOwner && (tx != null))
{
if (m_isComplete)
tx.Commit();
else
tx.Rollback();
tx = null;
m_isTxOwner = false;
}
if (m_isSessionOwner && (session != null))
{
if (m_isComplete)
session.Flush();
session.Dispose();
session = null;
m_isSessionOwner = false;
}
GC.SuppressFinalize(this);
}
#endregion
#region private members
private bool m_isSessionOwner = false;
private bool m_isTxOwner = false;
private bool m_isComplete = false;
#endregion
#region static
#region public
Name and version of the database you are using:Oracle 10g
hope it will be enough
i will check about the "inverse" issue
i have one parent with 2 childs - the childs are not connection tables (many to many) - its 2 different one to many connections
thnks