[Hibernate] Problem with Exception "Flush during cadcade is dangerous...."

2003-09-24 Thread Oisin Kim
ses.flush(); } catch (Exception e) { try { ses.connection().rollback(); } catch (Exception ex) { e.printStackTrace(); }; throw new DAOException(e); } } Oisin Kim Aurium Tel: +353 1 6611132 Fax: +353 1 6615200 e-mail: [EMAIL PROTECTED] web site: h

RE: [Hibernate] Is it possible to execute sql insert statements with hibernate / hibernate serssion object?

2003-09-16 Thread Oisin Kim
TECTED] On Behalf Of Christian Bauer Sent: 16 September 2003 14:00 To: Oisin Kim Cc: [EMAIL PROTECTED] Subject: Re: [Hibernate] Is it possible to execute sql insert statements with hibernate / hibernate serssion object? On 16 Sep (13:54), Oisin Kim wrote: > "Query q = session.createSQLQuery(

[Hibernate] Is it possible to execute sql insert statements with hibernate / hibernate serssion object?

2003-09-16 Thread Oisin Kim
find anythign referencing inserts apart from via object setting. Another issue I can see, is if this is possible, is what effect does running SQL statements have on the hibernate cache, is it possible to let hibernate know it's cache is out of date? Any help is greatly appreciated, Thanks,