[Hibernate] Getting mapped table name to a persistent object

2007-03-20 Thread Hess Yvan
w can retrieve the name of the database table that is used to store a given persisent object ? Thanks for your answer. Regards. Yvan Hess Yvan Hess Chief Software Architect e-mail: [EMAIL PROTECTED] phone : +41 (0)26 460 66 66 fax : +41 (0)26 460 66 60 Informatique-MTF SA Route du Ble

[Hibernate] LockMode.UPGRADE doesn't work with Informix database

2005-01-27 Thread Hess Yvan
Hi, I have a kinds of counter that I have to increase and I am doing the following action: session = sf.openSession(); tx = session.beginTransaction(); DocNrCounterPJO counter = (DocNrCounterPJO ) aHibernateSession.get(DocNrCounterPJO .class, anId, aLockMode); counter.currentStatus++; // Do s

[Hibernate] Informix problem using Query.setMaxResults() method

2004-11-02 Thread Hess Yvan
Hi everybody, I am doing the following query using Hibernate 2.1.6 with an Informix database Query query = aHibernateSession.createQuery(hql); query.setMaxResults(1); setBoundVariables(query); query.list(); When query.list() method is executed, I got the following error message (see

[Hibernate] evict method propagation on many-to-one relation

2004-05-14 Thread Hess Yvan
Hi, I would to know when I execute a session.evict() on an Object that contains many-to-one relation, if automatically all 'linked' element are also evicted or if I have to apply the evict method to all linked object. In my case, I have a Document element that contains first a self reference on it