-->
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: How to create relationships within tables below mentioned.
PostPosted: Tue Oct 31, 2006 8:17 am 
Newbie

Joined: Tue Oct 31, 2006 7:09 am
Posts: 4
Hi,

I need to create following relationships between tables i have below.
I am new to hibernate.
I am using Mysql as database.

These are the following table with relationships.
Need to write create,select,update query for these relationships between table.


Bran_comm table
=================
Bran_ID:integer(primarykey), Comm_ID:integer(foreign key), Comp_ID:integer,Compliance_status:BOOL

has the relation to Comm table as tracked by

Comm_table
==========
Comm_ID:integer(primarykey),Comp_ID:integer(foreign key),Name varchar,AF varchar,

has the relation to test table as validates

Test_table
==========
Test_ID:integer (primarykey), Comm_ID integer (foreign key), Description varchar


comp_table
==========
comp_id:integer (primary key),name varchar,owner varchar.

has the relation belongsto comm_table.

Any pointers or sample codes where can i get this information ie create,update,select queries with hibernate and Mysql in java.


Thanks,
Srins.


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.