• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

CMP Beans automatic generation of DB fields

Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am very new to the EJB world but trying to develop an application that interacts with a MySQL DB. I have a number of tables which i am relating to one another via foreign keys which i have specified in the jbosscmp-jdbc file and the ejb-jar deployment descriptor. After executing ant on the command line to build my database, I found not only the foreign keys which i specified but other similarly named fields which were automatically included....im thinking from the relationship tags in the ejb-jar file.

Can someone tell me if its necessary to explictly include these foreign keys or does EJBs do it automatically once you have specified the relationship in the deployment descriptor?

Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic