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.  [ 1 post ] 
Author Message
 Post subject: how to get out value of store procedure
PostPosted: Tue Aug 01, 2006 1:46 am 
Newbie

Joined: Tue Aug 01, 2006 1:32 am
Posts: 1
Location: Bangalore
How to get out value i m calling delete procedure.
when i check in database it delete the value but i m not getting out .

Hibernate version: 3.0

Mapping documents:
Code:
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping
>
    <class
        name="com.xxx.domain.CCAGroup"
        table="CCAGROUP"
    >

        <id
            name="id"
            column="id"
            type="java.math.BigDecimal"
            length="22"
            unsaved-value="null"
        >
            <generator class="increment">
              <!-- 
                  To add non XDoclet generator parameters, create a file named
                  hibernate-generator-params-CCAGroup.xml
                  containing the additional parameters and place it in your merge dir.
              -->
            </generator>
        </id>

        <property
            name="returnCode"
            type="java.math.BigDecimal"
            update="true"
            insert="true"
        />

        <property
            name="contractId"
            type="java.math.BigDecimal"
            update="true"
            insert="true"
            column="CONTRACT_ID"
        />

        <property
            name="name"
            type="java.lang.String"
            update="true"
            insert="true"
            column="NAME"
            length="128"
        />

        <property
            name="groupTypeId"
            type="java.math.BigDecimal"
            update="true"
            insert="true"
            column="GROUPTYPE_ID"
        />

        <property
            name="note"
            type="java.lang.String"
            update="true"
            insert="true"
            column="NOTE"
            length="4000"
        />

        <property
            name="description"
            type="java.lang.String"
            update="true"
            insert="true"
            column="DESCRIPTION"
            length="255"
        />

        <property
            name="user"
            type="java.lang.String"
            update="true"
            insert="true"
            column="CREATE_BY"
        />

   <sql-insert callable="true">{call CREATE_CCA(?, ?, ?, ?, ?, ?, ?,?)}</sql-insert>
   <sql-update callable="true">{? = call EDIT_CCA( ?, ?, ?, ?, ?, ?,?)}</sql-update>
   <sql-delete callable="true">{? = call DELETE_CCA(?)}</sql-delete>
 
    </class>

</hibernate-mapping>



Code between sessionFactory.openSession() and session.close():
Code:
CCAGroup ccaGroup=new CCAGroup();
ccaGroup.setId(new BigDecimal(ccaGroupId));
HibernateTemplate ht=getHibernateTemplate();
ht.delete(ccaGroup);


Name and version of the database i am using:
Quote:
oracle9i

_________________
Rahul Jain


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

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.