Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
3.1.2 rc2:
hello, can someone show me how to call a stored procedure correctly?actually, i already called a stored procedure in hibernate mapping but the fields does not correctly put in place..eg. i call a stored like this <sql-insetrt>{ ? = MY_SP(?,?,?,?,?)}</sql-insert> which has 5 parameters..but the data inserted in the database are switch or not put in right fields were should it be..can some tells me whats going wrong..and one yhing i keep arranging the hibernate mapping to put in exact fields of database...tnx
my hbn mapping:
<hibernate-mapping package="com.ifafa.reg.forms">
<class name="Test" table="Test">
<id name="par_Status" column="Status" type="java.lang.Character">
<!--generator class="assigned"/-->
</id >
<property name="par_ID" column="ID" not-null="true" type="java.lang.Long" />
<property name="par_Username" column="Username" not-null="true" type="java.lang.String"/>
<property name="par_Password" column="Password" not-null="true" type="java.lang.String" />
<property name="par_SiteID" column="siteID" not-null="true" type="java.lang.Long" />
<sql-insert callable="true">
{ ? = call SP_Dealer_Registration(?,?,?,?,?) }
</sql-insert>
</class>
</hibernate-mapping>
MySQL 5