-->
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: mapping for function
PostPosted: Sun Aug 12, 2007 6:24 pm 
Newbie

Joined: Sun Aug 12, 2007 6:09 pm
Posts: 1
Hello
I am new with Hibernate and I know that I can create a mapping for a table EVENTS (for myDatabase) as:

Code:
<hibernate-mapping>

    <class name="events.Event" table="EVENTS">
        <id name="id" column="EVENT_ID">
            <generator class="native"/>
        </id>
    </class>

</hibernate-mapping>


My question is if I have a function inside this myDatabase, how I can create a mapping for that function

For example I have a function

CREATE OR REPLACE function getItems (...) AS .....

How I can handle this case..

Many thanks
john


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.