Joined: Fri Jan 19, 2007 2:23 am Posts: 2
|
Hi,
I am trying to call a stored proc in my Sybase database.
I am getting following exception :-
org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/.... /Desk.hbm.xml
Here is my mapping file :-
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.pongrass.gwt.ned.server.persistence.model" default-access="field">
<class name="com.pongrass.gwt.ned.server.persistence.model.Desk">
<id name="fullpath">
<generator class="native"/>
</id>
<property name="sat" column="satellite"/>
<loader query-ref="loadDesk"/>
</class>
<sql-query name="loadDesk" callable="true">
<return alias="u" class="Desk">
</return>
{ ar_get_path_list(:platform) }
</sql-query>
</hibernate-mapping>
Can someone tell me correct syntax(for mapping) for doing this.
Thanks in advance!!!
|
|