Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within EJB and other Jakarta /Java EE Technologies
Search Coderanch
Advance search
Google search
Register / Login
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
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
EJB and other Jakarta /Java EE Technologies
in my weblogic-cmp-rdbms.xml the tag weblogic-relationship-role therisn't
giuseppe astarita
Greenhorn
Posts: 11
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi, i must specify the option "cascade-delete" for the CMR fields i have two files xml: weblogic-ejb-jar.xml and weblogic-cmp-rdbms.xml but the tag
<weblogic-relationship-role> is not located in them how can i do?
Thanks for answer
Pranav Shukla
Ranch Hand
Posts: 64
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi there,
<weblogic-relationship-role> can be specified in weblogic-cmp-rdbms.xml where you map your foreign key column.
Here is a sample weblogic-cmp-rdbms.xml
<weblogic-rdbms-jar> <weblogic-rdbms-bean> <ejb-name>CustomerBean</ejb-name> <data-source-name>myDS</data-source-name> <table-map> <table-name>Customer</table-name> <field-map> <cmp-field>customerId</cmp-field> <dbms-column>CustomerId</dbms-column> </field-map> <field-map> <cmp-field>customerName</cmp-field> <dbms-column>CustomerName</dbms-column> </field-map> <field-map> <cmp-field>customerAddress</cmp-field> <dbms-column>CustomerAddress</dbms-column> </field-map> </table-map> <automatic-key-generation> <generator-type>Oracle</generator-type> <generator-name>cust_sequence</generator-name> <key-cache-size>1</key-cache-size> </automatic-key-generation> </weblogic-rdbms-bean> <weblogic-rdbms-bean> <ejb-name>OrderBean</ejb-name> <data-source-name>myDS</data-source-name> <table-map> <table-name>ItemOrder</table-name> <field-map> <cmp-field>orderId</cmp-field> <dbms-column>OrderId</dbms-column> </field-map> <field-map> <cmp-field>date</cmp-field> <dbms-column>OrderDate</dbms-column> </field-map> </table-map> <automatic-key-generation> <generator-type>Oracle</generator-type> <generator-name>order_sequence</generator-name> <key-cache-size>1</key-cache-size> </automatic-key-generation> </weblogic-rdbms-bean> <weblogic-rdbms-relation> <relation-name>CustomerOrderRelation</relation-name> <weblogic-relationship-role> <relationship-role-name>OrderRole</relationship-role-name> <relationship-role-map> <column-map> <foreign-key-column>CustomerId</foreign-key-column> <key-column>CustomerId</key-column> </column-map> </relationship-role-map> </weblogic-relationship-role> </weblogic-rdbms-relation> <database-type>Oracle</database-type> </weblogic-rdbms-jar>
Check this
link
Hope this helps.
Cheers
Pranav
Pranav Shukla
SCJP, SCWCD, SCBCD
I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
for Kathy Sierra and Bert Bates
Entity CMP Mapping Questions
how to connect to MS-Access using weblogic 6.1
EJB QL RETURNING ONLY THE FIRST RECORD OF THE TABLE
Weblogic - EJB 2.0 CMR Relationship eager loading ??
More...