problem with composite id

hello frnds,i hava an table with four primary key.i want to fetch records which are composited with these four keys.so any one has idea that how to use hibernate for composite id then pls help me.....thanx in advance,,,regards Pandev84
[284 byte] By [pandev84a] at [2007-11-27 7:00:29]
# 1
You have a table with a multi-column primary key. Hibernate allows you to express composite primary keys. What's the actual problem?[url http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping.html#mapping-declaration-compositeid]Mapping with a composite ID[/url]
dcmintera at 2007-7-12 18:51:13 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
hello frnd,can u give me any sample code for composite-id mapping in our mapping file?thanx in advance...PanDev84
pandev84a at 2007-7-12 18:51:13 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
> hello frnd,I'm not your friend. Nor am I your "frnd".> can u give me any sample code for composite-id> mapping in our mapping file?No. You take a shot at it, then I'll help you fix it. Do some work first - like reading the documentation.
dcmintera at 2007-7-12 18:51:13 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...