Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!

Hugues Joly

Greenhorn
+ Follow
since May 25, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hugues Joly

Hi,
I'm trying to port a sun tutorial into JBoss 4.0.4. Some of the CMP beans have a PK class whose fields refer to a composite PK in the corresponding table.

What I don't know is how to specify this in the jbosscmp-jdbc.xml file. In fact I'm asking if it's even possible to have composite primary keys for CMP beans in JBoss.
If so, how to do it. Here's my bean, its PK class & its table:


I thought that a @jboss.unknown-pk would do it but it's not possible to associate more than one column-name to it.

Thanks in advance.
13 years ago