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: when i use the procedure of oracle,i find the strange circs.
PostPosted: Wed Jul 06, 2005 12:24 am 
Regular
Regular

Joined: Tue Dec 30, 2003 2:35 am
Posts: 85
hi:
i write a procedure of oracle:
Quote:
create or replace procedure sp_affair_insert
(
p_affairid in varchar2,
p_affairstate in varchar2,
p_affairtypeid in varchar2
)
as
begin
insert into affair(affairid,affairstate,affairtypeid)
values(p_affairid,p_affairstate,p_affairtypeid);
end;


and in the hbm.xml i write:
Quote:
<hibernate-mapping package="org.Debug.Hibernate.yhb">

<class name="Affair" table="AFFAIR">
<id name="affairid" column="AFFAIRID" type="string">
<generator class="assigned"/>
</id>

<property name="affairstate" column="AFFAIRSTATE" type="string" not-null="true" />
<property name="affairtypeid" column="AFFAIRTYPEID" type="string" not-null="true" />

<sql-insert callable="true">{call sp_affair_insert(?,?,?)}</sql-insert>
</class>

</hibernate-mapping>


i find the order of parameter become out-of-order,not the order i hope

i can find the rule of the order from the document of the hibernate3!
can some one tell the reason!


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.