Java Database Connectivity (JDBC) - hibernate mappings problem

Hi all,

I am new for hibernate. i wite the table and its column mappings in hbm file but i fail to write relation mapping here i smy table.

course {c_ic,CourseName}

student {s_id,c_id,s_name}

when i get all students list in java classes then i got s_id,c_id,s_namemins 1,2, joninsted of course name i am getting course id.

how can i write relation mappings please help me. Or should i user java annotation to map the bean to table.

i also write two java beans course and student but i fail to write anotation for relation pelase suggest me

Thanks

[595 byte] By [raviadhaa] at [2007-11-26 23:10:42]
# 1
which tool you r useingyou can generate hbm,xml file using tools like my eclipseand post your qery clearly
eswar071a at 2007-7-10 14:07:13 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
Yes, i generate hbm file using Eclipse3.2+Myeclipse5
raviadhaa at 2007-7-10 14:07:13 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3

when i get all students list in java classes then i got s_id,c_id,s_name mins 1,2, jon insted of course name i am getting course id.

how can i write relation mappings please help me. Or should i user java annotation to map the bean to table.

I'm sorry, but your question is completely incoherent. You need to use an association mapping, but it's not clear what sort you need, what you've got, or how it's failing. Please try to express yourself more clearly.

dcmintera at 2007-7-10 14:07:13 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...