Win a copy of Fixing your Scrum this week in the Agile forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Entity Bean Component Reusability

 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have some doubt on entity bean. How does a bean provider know the db schema in the operational environment when he builds an entity bean? CMP fields in the DD must match the column names of a table in a db schema, but a bean provider knows nothing about the table name and its columns name.

Suppose I from company X wear both bean assembler hat and deployer hat, given an off-the-shelf entity bean A from company Y, how can I incorporate entity bean A into my application. Note that the CMP fields do not match the fields of my table.
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Joe Nguyen:
I have some doubt on entity bean. How does a bean provider know the db schema in the operational environment when he builds an entity bean? CMP fields in the DD must match the column names of a table in a db schema, but a bean provider knows nothing about the table name and its columns name.

Suppose I from company X wear both bean assembler hat and deployer hat, given an off-the-shelf entity bean A from company Y, how can I incorporate entity bean A into my application. Note that the CMP fields do not match the fields of my table.



It is responsibility of the Bean Deployer to map the cmp fields with the actual db fields, and to resolve any external references (i.e. datasources), by using vendor-specific tools.
 
Squanch that. And squanch this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic