• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Deploying on JBoss a CMP bean that uses a composite PK in EJB2.1

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
This tiny ad will self destruct in five seconds.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic