Skip to Content
author's profile photo Former Member
Former Member

EJB mapping to database tables

Hi Experts,

I am moving my application from JBoss server to Netweaver server. For this i have to do all the maaping in ejb-jar and ejb-j2ee engine and persistence xml files. I am wondering the way how can i use my existing database tables for mapping to persistence xml.

Every example says i have to create java dictionary project but if i go like this then i have to create hundreds of tables again which are already in my SQL database. Please let me know how i can map my database tables to my application fro deploying to Netweaver server.

Thanks in Advance

Regards,

Chirag

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2009 at 02:18 PM

    Hello,

    Java Dictionary stores its metainformation in xml - files, it meight be possible to create them on basis of existing tables.

    But: Java Dictionary only supports the default "system" - database that is unterneath NWAS.

    As i understand your problem, you want to connet to an other (existing) database - so you will have to create the mapping in persistence.xml. I would try to use a xml transformation to create persistence.xml

    hope it helps

    Johannes

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 23, 2009 at 09:10 AM

    Hi Chirag,

    Yes, it is possible to use Java Dictionary when you already have created your database tables. This is called backward mapping.

    For more information, check out this document:

    http://help.sap.com/saphelp_nwce711/helpdata/en/44/edbd4aa338108ee10000000a11466f/frameset.htm

    Best regards,

    Ekaterina

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.