-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Deleting/Updating over an Oracle database link
PostPosted: Thu Feb 22, 2007 2:47 pm 
Newbie

Joined: Thu Feb 22, 2007 1:03 pm
Posts: 1
Hibernate version:3

Mapping documents:
<class name="com.westgateresorts.salescommissions.businessobjects.SecurityParams" table="SEC_FORMS_PARAMETERS">
<id name="id" column="ID" type="java.lang.String" length="50" unsaved-value="null">
<generator class="assigned"/>
</id>
<property name="returnUrl" column="RETURN_URL" type="java.lang.String" length="2000" not-null="false"/>
<property name="sessionActive" column="SESSION_ACTIVE" type="java.lang.String" length="1" not-null="false"/>
</class>


Code between sessionFactory.openSession() and session.close():
String hql = "delete from SEC_FORMS_PARAMETERS s where s.id = :id";
Query query = getSession().createSQLQuery(hql);
query.setString("id",securityParams.getId());
int rowCount = query.executeUpdate();
//getHibernateTemplate().delete(securityParams);


Full stack trace of any exception that occurs:
No errors, executes all code but there are no deletes on the database


Name and version of the database you are using:Oracle 9i

Has anyone had success deleting or updated on Oracle over a database link? My JUNIT makes it through successfully but no deletes or updates are made over the database link. I can fetch over the database link fine, just no DML. Thanx for any help on this.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 23, 2007 12:08 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi emo7874,

Plz.. check your transaction setting.If you are not using transaction interceptor.you will have to use session.beginTransaction().

_________________
Dharmendra Pandey


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.