• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

M:N relationship in CMP using 2 entity beans

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to implement M:N relationship with 2 beans CourseBean and
StudentBean. The corresponding tables are course, student and enrol.
enrol is the join table with two columns each being FK to the PK in
course and student tables.
When running ejbc on the jar file, I get this error I've copied below:
PS: The columns in enrol are studentID and CallNumber. The code for
beans and descriptors follow the error message below.
I appreciate any help. I've spent a day trying to figure it. Thanks a
ton in advance.
~
ERROR: Error from ejbc: Error while reading
'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
In relationship 'student-courses', role 'students-take-many-courses',
invalid column 'sID', a column-map element contains an invalid
key-column. The key-column is not defined in the related bean or it's
not recognized because of case mismatch.
In relationship 'student-courses', role 'courses-have-many-students',
invalid column 'courseCallNumber', a column-map element contains an
invalid key-column. The key-column is not defined in the related bean
or it's not recognized because of case mismatch.
 
BWA HA HA HA HA HA HA! Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic