-->
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: hibernate mapping
PostPosted: Wed Feb 06, 2013 4:07 am 
Newbie

Joined: Wed Jan 23, 2013 7:00 am
Posts: 8
hi
i have created two tables as follows
"create table orderdetails (customercode varchar(30) NOT NULL,itemcode varchar(30) NOT NULL,quantity integer,price integer,PRIMARY KEY(itemcode));
create table itemmaster(itemcode varchar(30),itemdesc varchar(30),PRIMARY KEY(itemcode));
alter table orderdetails add FOREIGN KEY orderdetails(itemcode) REFERENCES itemmaster(itemcode);"

In my DTO class i have created customercode ,itemcode, quantity, price and itemdesc varaibles.is there any way if i want to display all these variables i should get itemdesc value from itemmaster by using hibernate config file(without using annotations)


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.