-->
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: stored procedure returning subset of properties
PostPosted: Mon Mar 13, 2006 12:49 am 
Newbie

Joined: Wed Mar 08, 2006 9:43 pm
Posts: 5
I have a stored prodedure for returning just a few properties of cats and a few properties of its kittens given an owner name

select {cat.name}, {cat.kittens.*} from Cat cat, Owner owner where cat.owner = owner.name

cat has properties: name, breed, collection of kittens, owner,
kitten is a cat
owner has properties: name and address

I am not sure how to go about mapping such a thing or how it would work and what it would return. I like any help as I am having a hard time wrapping my head around or mapping.
I would very much appreciate examples
thanks
aj


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.