-->
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: SELECT SENTENCE TO ENTITIES
PostPosted: Mon Nov 05, 2007 7:09 am 
Newbie

Joined: Sat Apr 07, 2007 6:53 am
Posts: 16
I have to get information from this sentence -->


Code:
SELECT ARTICLE_ID, TO_PLACE_ID SITE, AMOUNT QUANTITY    FROM STOCK_MOVEMENTS WHERE TO_PLACE_ID IS NOT NULL


and hold this information into class -->

Code:
public class Stock {
   private Model.Entities.Article article;
   private Model.Entities.Site site;
   private int amount;
   
   ....
}


How Can I translate ARTICLE_ID and TO_PLACE_ID to Article entity nd Place Entity respectly.

Thanks for all in advance


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.