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)
|