Reg. Toplink Tutorial

Hi Friends,
I am new to Toplink Technology, I want to use toplink in my project.
plz help me find a detailed tutorial & documentation on toplink.
Thanks & Regards,
Sella

You can also find the complete TopLink doc set here:
http://www.oracle.com/technology/products/ias/toplink/doc/index.html

Similar Messages

  • JDeveloper 10G: Annoying bug Toplink Tutorial

    Hi,
    While I was completing the simple tutorial for Toplink I came to the point to create a Java class using my Toplink mapping. When I clicked the link I got the following error stack in my JDev window. This is very annoying cause it means I've done all my work the last few hours for nothing since I still don't know how to use the Toplink classes I've just created.
    Error message:
    oracle.help.topicDisplay.TopicDisplayException: BrowserTopicDisplay: Error Disp
    laying Topic
    at oracle.help.topicDisplay.BrowserTopicDisplay.setBrowserURL(Unknown So
    urce)
    at oracle.help.topicDisplay.BrowserTopicDisplay.protocolReceived(Unknown
    Source)
    at oracle.help.htmlBrowser.ICEBrowser._fireProtocolEvent(ICEBrowser.java
    :673)
    at oracle.help.htmlBrowser.ICEBrowser.access$5000071(ICEBrowser.java)
    at oracle.help.htmlBrowser.ICEBrowser$DeferringStormBase._captureOHJProt
    ocol(ICEBrowser.java)
    at oracle.help.htmlBrowser.ICEBrowser$DeferringStormBase.renderContent(I
    CEBrowser.java:822)
    at ice.storm.Pilot.renderContent(Unknown Source)
    at ice.pilots.html4.DefaultActionHandler.handleDefaultActionOnLinks(Unkn
    own Source)
    at ice.pilots.html4.DefaultActionHandler.mouseAction(Unknown Source)
    at ice.pilots.html4.DefaultActionHandler.onClick(Unknown Source)
    at ice.pilots.html4.DefaultActionHandler.handleEvent(Unknown Source)
    at ice.pilots.html4.DDocument.processEvent(Unknown Source)
    at ice.pilots.html4.DNode.dispatchEvent(Unknown Source)
    at ice.pilots.html4.CSSLayout.do_handleEvent(Unknown Source)
    at ice.pilots.html4.CSSLayout.handleEvent(Unknown Source)
    at ice.pilots.html4.DocPaneXml.uiEvent(Unknown Source)
    at ice.pilots.html4.swing.DocView.onComponentMouseEvent(Unknown Source)
    at ice.pilots.html4.swing.DocView.onComponentEvent(Unknown Source)
    at ice.pilots.html4.swing.DocView.onComponentEvent(Unknown Source)
    at ice.pilots.html4.swing.DocPanel.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Component.java:3639)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    at java.awt.Container.dispatchEventImpl(Container.java:1609)
    at java.awt.Window.dispatchEventImpl(Window.java)
    at java.awt.Component.dispatchEvent(Component.java)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:452)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    JDev version: 9.0.5.13.88
    Java version: 1.4.1_02 (came with jdev)
    Running on Windows XP professional.
    Suggestions are welcome!

    Okay, It seems I was a little to quick with my comments. Although the error still occurs, it doesn't mean I cannot end the tutorial. So this make it a little less annoying ;-).
    Regards,
    paskal

  • 11g Tp3 Tutorial execution problems

    I tried creating the 1st JDeveloper targeted Toplink tutorial at http://www.oracle.com/technology/products/ias/toplink/doc/11110/tutorial/index.htm.
    What are the correct libraries to execute the test?
    I have
    TopLink
    Oracle XML Parser v2
    Oracle JDBC *
    Java EE 1.5 *
    JUnit 4 Runtime
    * - I added theses to resolve ClassNotFound errors.
    I now get a TransactionException. What are the correct libraries? Do I really need to set this naming factory, or do you think I am doing something else wrong?
    oracle.toplink.exceptions.TransactionException:
    Exception Description: Error obtaining the Transaction Manager
    Internal Exception: Exception [TOPLINK-23001] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.TransactionException
    Exception Description: Error looking up external Transaction resource under JNDI name [java:comp/pm/TransactionManager]
    Internal Exception: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

    Hi !
    Can you please share this tutorial as when i am trying to build and execute it in 11g (11.1.1.1.0) i am getting the below error, i am new to 11g/Toplink/Junit.
    oracle.toplink.exceptions.SessionLoaderException:
    Exception Description: Several [2] SessionLoaderExceptions were thrown:
    oracle.toplink.exceptions.SessionLoaderException.finalException(SessionLoaderException.java:91)
    oracle.toplink.tools.sessionconfiguration.XMLLoader.loadInternal(XMLLoader.java:172)
    oracle.toplink.tools.sessionconfiguration.XMLLoader.load(XMLLoader.java:144)
    oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:340)
    oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:453)
    oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:383)
    example.test.TopLinkExampleTest.createSession(TopLinkExampleTest.java:79)
    example.test.TopLinkExampleTest.setUp(TopLinkExampleTest.java:40)
    junit.framework.TestCase.runBare(TestCase.java:125)
    junit.framework.TestResult$1.protect(TestResult.java:106)
    junit.framework.TestResult.runProtected(TestResult.java:124)
    junit.framework.TestResult.run(TestResult.java:109)
    junit.framework.TestCase.run(TestCase.java:118)
    junit.framework.TestSuite.runTest(TestSuite.java:208)
    junit.framework.TestSuite.run(TestSuite.java:203)
    Thanks,
    KK

  • Urgent - Can't find the demo/tutorial :-(

    Hi,
    I am a newbie. I downloaded and did a full install of TopLink. However the folders related to the tutorials are missing in the TopLink install directory.
    I searched the website for TopLink tutorial/demos download and did not find any. Am I missing something? Was I supposed to find and download the tutorial seprately.
    I found a pdf document "TopLink-getting started" but that is it. I am missing the folders related to the tutorials.
    Where can I find them. Please help.

    The Mapping Workbench Tutorial (in the Mapping Workbench User's Guide) is located here: http://download.oracle.com/docs/cd/B10464_03/web.904/b10316/tutorial.htm#654344
    Online Demos are located on OTN here: http://otn.oracle.com/products/ias/toplink/mwdemos/index.html
    The TopLink examples are a separate download from OTN: http://otn.oracle.com/products/ias/toplink/preview/examples/index.html

  • The TopLink test never successful

    After create the application and configuring the TopLink mappings tasks according to the guide of TopLink Tutorial 11g (using JDeveloper), I test the application using Junit tool. But the test never successful. I don't know what is the problem. Does the errror come from the Tutorial? The link of this tutorial is:
    http://www.oracle.com/technology/products/ias/toplink/doc/11110/tutorial/index.htm
    When run the test, the following errors are reported:
    Comment and comment tags are missing: @param testName.
    There is no period to end the first sentence of the description.
    Catch block for junit.framework.AssertionFailedError should rethrow or invoke handler
    Catch block for junit.framework.AssertionFailedError should rethrow or invoke handlerThank you

    Hi !
    Even when i am trying to run the toplink example given on
    http://www.oracle.com/technology/products/ias/toplink/doc/11110/tutorial/intro/jdeveloper/intro_tutorial.htm
    i am getting the below mentioned error:
    oracle.toplink.exceptions.SessionLoaderException:
    Exception Description: Several [2] SessionLoaderExceptions were thrown:
    oracle.toplink.exceptions.SessionLoaderException.finalException(SessionLoaderException.java:91)
    oracle.toplink.tools.sessionconfiguration.XMLLoader.loadInternal(XMLLoader.java:172)
    oracle.toplink.tools.sessionconfiguration.XMLLoader.load(XMLLoader.java:144)
    oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:340)
    oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:453)
    oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:383)
    example.test.TopLinkExampleTest.createSession(TopLinkExampleTest.java:79)
    example.test.TopLinkExampleTest.setUp(TopLinkExampleTest.java:40)
    junit.framework.TestCase.runBare(TestCase.java:125)
    junit.framework.TestResult$1.protect(TestResult.java:106)
    junit.framework.TestResult.runProtected(TestResult.java:124)
    junit.framework.TestResult.run(TestResult.java:109)
    junit.framework.TestCase.run(TestCase.java:118)
    junit.framework.TestSuite.runTest(TestSuite.java:208)
    junit.framework.TestSuite.run(TestSuite.java:203)
    please guide me on the same and can you let me know how to test it using Junit ?
    I am using Jdeveloper 11g for the tutorial.
    Thanks,
    KK

  • Pagination in toplink using custom query

    Re: Pagination using TopLink
    Posted: Aug 31, 2006 10:42 PM in response to: Shaun Smith Reply
    Hi,
    I have my own customer query which is really complex with subqueries,joins,grouping,aggregation in the query etc etc for which I cant use toplink workbench to create a project and do the metadata mapping.
    But we need to enable pagination without holding the database resources between customer's page time in the browser.
    Is there any provision in toplink to just input the custom query (either statement/prepared statement) and do pagination without holding connection to the database between page time?
    The example i got from the link makes use of LogicalCursor/ChunkingLogicalCursor etc.
    LogicalCursor cursor = new LogicalCursor(Model.class,null);
    for (CursorIterator it = cursor.iterator(session); it.hasNext();)
    System.out.println(it.next(session));
    Only parameter that is passed to the LogicalCursor is "Model" which is a java object mapped to a particular table.
    But we had a java object which should be mapped to the output of a complex query involing complex query and pagination needs to be enabled.
    Could you please let us know a sample by which we can do by simply passing the query during the runtime ?

    It really seems weird.
    We followed the toplink tutorial and wrote a servlet FindAddress which on receiving the request
    1. instantiates ReadQuery and
    2. setreferenceclass to Address.class,
    3. setFetchSize(1000) and
    4.sets useScrollableCursor.
    5. It does session.executeQuery returning a ScrollableCursor.
    6. We place the ScrollableCursor in HttpSession
    and then redirect the page to viewAddress.jsp which
    1. retrieves the ScrollableCursor from the session
    2. i=0;     while(cursor.hasNext() && i<1000) {
         Address address = (Address)cursor.next();
    //display via the jsp all these 1000 address objects
    3. has a next button when a click on that it again goes to the same page retrieving the next set of 1000 records from ScrollableCursor from the session.
    Through out this experimentation I could see the connection is still held. I was expecting that once the page gets displayed for 1000 records and untill you press next, the connection should be handled back to the J2EE application server but still the connection is held .
    The logic of setFetchSize as mentioned in the documentation is that after reading the first set of records as per fetchSize ,connection should be returned to the pool and when we do iterator.next() after fetchsize limit, it has to again going to the database and fetch records but it doesnt seem to be.
    Could you please help us. This is what we are trying to do as next step and we had been evaluating toplink could be the best choice for our business scneario:
    We try to achieve pagination without holding the database resource when the user navigates between paged records.
    Any help on this would make us to hit toplink for our huge application.
    Here is the attached FindAddress.java and ViewAddress.jsp
    FindAddress.java
    =============
    // Decompiled by DJ v2.9.9.61 Copyright 2000 Atanas Neshkov Date: 9/8/2006 6:32:21 PM
    // Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name: FindAddress.java
    package examples.servletjsp;
    import java.io.IOException;
    import java.io.PrintStream;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.toplink.expressions.Expression;
    import oracle.toplink.expressions.ExpressionBuilder;
    import oracle.toplink.queryframework.ReadAllQuery;
    import oracle.toplink.queryframework.ScrollableCursor;
    import oracle.toplink.threetier.ClientSession;
    import oracle.toplink.threetier.Server;
    // Referenced classes of package examples.servletjsp:
    // JSPDemoServlet
    public class FindAddress extends JSPDemoServlet
    public FindAddress()
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    doPost(request, response);
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    request.setCharacterEncoding("UTF-8");
    getServletContext().log("FindAddress servlet - doPost");
    java.util.Vector address = null;
    ScrollableCursor cursor = null;
    try
    HttpSession session = request.getSession(true);
    ReadAllQuery query = new ReadAllQuery();
    query.setReferenceClass(examples.servletjsp.model.Address.class);
    ExpressionBuilder builder = new ExpressionBuilder();
    query.setSelectionCriteria(builder.get("id").greaterThan(100));
    query.setFetchSize(5000);
    query.useScrollableCursor();
    System.out.println("########### Sleep Mode Before assigning to CURSOR ###############");
    System.out.println("############ Back from Sleep Mode before CURSOR ############");
    cursor = (ScrollableCursor)((Server)getSession()).acquireClientSession().executeQuery(query);
    System.out.println("############ Sleep Mode After assigning to CURSOR ###########");
    System.out.println("############ Back from Sleep Mode After CURSOR ############");
    session.setAttribute("ScrollableCursor", cursor);
    catch(Exception e)
    request.setAttribute("source", "FindEmployees doPost");
    request.setAttribute("header", "An Error Occurred");
    request.setAttribute("errorMessage", e.getMessage());
    request.getRequestDispatcher("./errorPage.jsp").forward(request, response);
    return;
    System.out.println("cursor------------" + (cursor == null));
    if(cursor == null)
    request.getRequestDispatcher("./EmployeesNotFound.jsp").forward(request, response);
    } else
    request.setAttribute("address", address);
    request.getRequestDispatcher("./viewAddress.jsp").forward(request, response);
    viewAddress.jsp
    =============
    <%@page import="java.util.*"%>
    <%@page import="examples.servletjsp.*"%>
    <%@page import="examples.servletjsp.model.*"%>
    <%@page import="oracle.toplink.queryframework.ScrollableCursor"%>
    <%@page import="java.math.*"%>
    <%@page contentType = "text/html; charset=UTF-8"%>
    <html>
    <head><title>Employee Query Results</title></head>
    <body>
    <form name="test" method="post" action="viewAddress.jsp">
    <!--      Prepare s heading.
         Get the employees passed in from ViewEmployees servlet. Show them in table format. Provide button
         to ViewEmployee -->
    <%
         request.setCharacterEncoding("UTF-8");
         String searchString = request.getParameter("employeeString");
         ScrollableCursor cursor = (ScrollableCursor) session.getAttribute("ScrollableCursor");
         String heading = null;
              heading="Search Results for FindAll on Employee";
         String employeeData = "";
         //Iterator data = ((Vector)request.getAttribute("address")).iterator();
         int i =0;
         while(cursor.hasNext() && i<4995) {
              if(i<10){
                   System.out.println("######### JSP Count TRhread Sleep ###########");
                   //Thread.sleep(100);
                   //System.out.println("######### JSP Count TRhread Sleep Over ###########");
              i++;
         Address address = (Address)cursor.next();
         BigDecimal id = address.getId();
         String city = address.getCity();
         String province = address.getProvince();
         String street = address.getStreet();
         String country = address.getCountry();
         String pCode = address.getPostalCode();
         employeeData += "<tr><td>" + id + "</td>"
              + "<td>" + province + "</td>"
              + "<td>" + street + "</td>"
              + "<td>" + city + "</td>"
              + "<td>" + pCode + "</td>"
              + "<td>" + country+ "</td>"
              + "</tr>";
         //cursor.close();
         System.out.println("abcdAfter closing the cursor ->plz see whether connpool monitorcnt = 0");
    %>
    <center>
         <h2><%=heading%></h2>
         <hr>
         Return to Main
         <p>
         <table border=1>
              <tr>
                   <td align="center">Address Id</td>
                   <td align="center">Province</td>
                   <td align="center">Street</td>
                   <td align="center">City</td>
                   <td align="center">Postal Code</td>
                   <td align="center">Country</td></tr>
              <%=employeeData %>
         </table>
    </center>
    <p>
    <input type="submit" name ="next" value="next" >
    <center>Return to Main</center>
    </form>
    </body>
    </html>

  • Configuring Business Operations in WLIntegrator 2.1 Studio

    Hi,
    I deployed a SessionBean and few CMPs in a deployable jar on WLI 2.1.I was able
    to test the deployment through a java client.
    Now, when i go to a workflow template in WLI Studio and select Configuration-->Business
    Operations and click on add button, I`m getting following exception on server console:
    Started WebLogic Integration - BPM Server version 2.1
    WebLogic Integration BPM server does not support NULL.
    ***** ASSERTION FAILED *****[ Unable to load remote interface: java.lang.ClassNotFoundException:
    amit.lal.cmp.ProductCmp ]
    Make sure your EJB is configured in the same Application as the WLPI code
    Any pointers to what may be the problem and how to solve it.
    Thanks,
    Amit Lal

    Hi,
    check in your administration console/Deployments/EJB: the WLPI application
    code is propably deployed into the WLPI_Application. I did not find another
    way to tell my EJB to be deployed in the same application than editing the
    config.xml (which is hopefully not the recommended way to do it).
    In the config.xml should be a tag like:
    <Application Deployed="true" Name="WLPI_Application" Path="lib">
    insert your myEjb.jar like the following (the URI has to be relative to the
    given path, in this case "lib"!):
    <Application Deployed="true" Name="WLPI_Application" Path="lib"
    [other WLPI applications]
    <EJBComponent Name="myEjb" Targets="myserver"
    URI="../../../src/toplink/tutorial/ejbtest/myEjb.jar"/>
    </Application>
    Regards,
    Astrid
    Amit Lal <[email protected]> schrieb in im Newsbeitrag:
    3d04a6e8$[email protected]..
    >
    Hi,
    I deployed a SessionBean and few CMPs in a deployable jar on WLI 2.1.Iwas able
    to test the deployment through a java client.
    Now, when i go to a workflow template in WLI Studio and selectConfiguration-->Business
    Operations and click on add button, I`m getting following exception onserver console:
    >
    >
    Started WebLogic Integration - BPM Server version 2.1
    WebLogic Integration BPM server does not support NULL.
    ***** ASSERTION FAILED *****[ Unable to load remote interface:java.lang.ClassNotFoundException:
    amit.lal.cmp.ProductCmp ]
    Make sure your EJB is configured in the same Application as the WLPI code
    Any pointers to what may be the problem and how to solve it.
    Thanks,
    Amit Lal

  • Exception when using the Multiple Tables

    When I tried to follow through the most recent TopLink tutorial project, I got the following exception if I tried to create a new employee record, although I can view or/and update the salary value from an employee object without any problem.
    Exception [TOPLINK-68] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The value of an aggregate in object [Employee: John Smith] is null. Null values not allowed for Aggregate mappings unless "Allow Null" is specified.
    Mapping: oracle.toplink.mappings.AggregateObjectMapping[period]
    Descriptor: RelationalDescriptor(examples.servletjsp.model.Employee --> [DatabaseTable(EMPLOYEE), DatabaseTable(SALARY)])
         at oracle.toplink.exceptions.DescriptorException.nullForNonNullAggregate(DescriptorException.java:1180)
         at oracle.toplink.mappings.AggregateObjectMapping.buildRowFromAggregate(AggregateObjectMapping.java:280)
         at oracle.toplink.mappings.AggregateObjectMapping.buildRowFromAggregate(AggregateObjectMapping.java:267)
         at oracle.toplink.mappings.AggregateObjectMapping.writeFromObjectIntoRow(AggregateObjectMapping.java:925)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildRow(ObjectBuilder.java:753)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildRow(ObjectBuilder.java:742)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:401)
         at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:60)
    I did select the SALARY table as the associated table from the Employee descriptor’s Multitable Info tab and also the “Primary Keys Have the Same Name” option. I also mapped the Employee’s attribute “salary” to the field of SALARY.salary (direct to field mapping). What else did I miss to cause such an exception?
    Many thanks for any help.

    We are always eager to improve the product. Do you have any suggestions as to how the exception could be clarified. This may be a case where those of us on the inside have been looking at the issue the same way for a long time and cannot see the problem.
    the exception thrown is:
    Exception Description: The value of an aggregate in object [Employee: John Smith] is null. Null values not allowed for Aggregate mappings unless "Allow Null" is specified.
    Mapping: oracle.toplink.mappings.AggregateObjectMapping[period]
    Descriptor: RelationalDescriptor(examples.servletjsp.model.Employee --> [DatabaseTable(EMPLOYEE), DatabaseTable(SALARY)])This can be generalized to be:
    Exception Description: The value of an aggregate in object Object.toString() is null. Null values not allowed for Aggregate mappings unless "Allow Null" is specified.
    Mapping: oracle.toplink.mappings.AggregateObjectMapping[attribute-name]
    Descriptor: RelationalDescriptor(Source Descriptor Class --> TABLES)
    Let me know what you think would help diagnose the problem more easily or what additional information provided confuses the diagnosis.
    Thanks in advance for any feedback,
    Doug

  • Missing classes in OBE series

    I am new to JDeveloper and am doing the 'Building a Web Application with ADF and Oracle TopLink' tutorial.
    Towards the end when I am ready to test my app, I get all kinds of errors of classes not found kind. The backing classes are missing UIComponent, HtmlForm, EditableValueHolder, ActionSource, ValueHolder classes.
    The jspx files are missing the UIComponentTag class.
    What did I do wrong? What jars am I mssing and how do I include them? Thanks,

    Iterate over the numbers and keep track of the last seen value.
    Kaj

  • Simple one to many mapping question

    Hi,
    In the Toplink tutorial there is a one to many relation between Employee and PhoneNumber, and one to one between PhoneNumber and Employee.
    If I don't require can I eliminate the one to one relationship between PhoneNumber and Employee. Or Toplink requires it?
    Thanks
    -Mani

    Hi,
    The purpose of creating one-to-one back reference mapping in the target is so that the foreign key information can be written when the target object is saved. Alternatives to the one-to-one mapping back reference include:
    Use a direct-to-field mapping to map the foreign key and maintain its value in the application. Here the object model does not require a back reference, but the data model still requires a foreign key in the target table.
    Use a many-to-many mapping to implement a logical one-to-many. This has the advantage of not requiring a back reference in the object model and not requiring a foreign key in the data model. In this model the many-to-many relation table stores the collection. It is possible to put a constraint on the join table to enforce that the relation is a logical one-to-many relationship.
    Raanan.

  • TopLink in JDeveloper Tutorial

    I am trying to find a tutorial to get me started using Toplink/EclipseLink/JPA in JDeveloper. I can't seem to find any step by step guide on how this is achieved.
    Any tutorials I have found have been for the Eclipse IDE, not for JDeveloper.

    Hi,
    Check
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_51/jdtut_11r2_51_1.html
    http://docs.oracle.com/cd/E16162_01/user.1112/e17455/dev_ejb_jpa.htm#OJDUG954
    http://docs.oracle.com/cd/E12839_01/web.1111/b32441/jdev.htm
    http://www.packtpub.com/article/building-ejb3-persistence-model-with-oracle-jdeveloper

  • Adf faces tutorial - Toplink model is out of sync with the database.

    When running the adf faces tutorial I encountered some problems. The starter workspace uses toplink and the model should be based on the OE schema database objects. However the Customers class is different from the database table, especially the custAddress (but also the phoneNumbers).
    Thus when running the application, the creation and update of a customer (with data for the address) raises the following error:
    javax.faces.FacesException: #{ManageCustomers.doUpdate}: javax.faces.el.EvaluationException: Exception [TOPLINK-4002] (Oracle TopLink - 10g Developer Preview 3 (10.1.3.0 ) (Build 041116)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00932: inconsistent datatypes: expected OE.CUST_ADDRESS_TYP got CHAR
    Error Code: 932
    Besides, the application is not able to display the address properly (due to the same problem) but shows something like: oracle.sql.STRUCT@43e and it cannot display the order_date (timestamp with timezone) correct.
    I get the impression that the toplink model is based on an old or modified OE schema and has not been updated. I like the tutorial, but I would appreciate it when it is correct and does not contain such flaws as descibed. Please update the workspace.

    Ship missing arch files to the standby arch dest manually and initiate recovery of the standby db.No need to regenerate the controlfiles. You might want to investigate the reason why they were not sent to the standby db.

  • TopLink Workbench Webservices tutorial

    Hi,
    can you point me to a tutorial explaining how to use TopLink and Webservices ? I know there is an article and sample code on OTN for webservices/toplink but it doesn't say how you actually start ..
    That is : which are the steps one would have to make to expose TopLink data (objects) through webservices ?
    Thank you,
    F

    Hi there,
    Can you provide a little more information about the type of TopLink project you currently have mapped? Presumably you have mapped your object model to a relational database and wish to access the cached TopLink data through a web service?
    Our TopLink 10.1.3 release offers the ability to use TopLink as a serializer/deserializer in a web service environment, as highlighted in the How To: http://www.oracle.com/technology/products/ias/toplink/preview/10.1.3dp3/howto/webSrv/index.htm , but I'm guessing that's not what you're looking for. Let me know which article you were looking at on OTN and I can point you in the right direction from there.
    Regards,
    Dave

  • Jdeveloper tutorial for Toplink

    Hi There,
    I am a beginner to toplink using Jdeveloper 11g. Please provide me step by step guide or tutorial for creating EJB 3.0 using toplink in Jdeveloper 11g.
    Awaiting for your kind reply.
    Thanks

    Hi,
    Check
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_51/jdtut_11r2_51_1.html
    http://docs.oracle.com/cd/E16162_01/user.1112/e17455/dev_ejb_jpa.htm#OJDUG954
    http://docs.oracle.com/cd/E12839_01/web.1111/b32441/jdev.htm
    http://www.packtpub.com/article/building-ejb3-persistence-model-with-oracle-jdeveloper

  • Oracle TopLink 10g Introductory Tutorial: No Table Reference available

    Hi,
    I'm trying to work through the Oracle TopLink 10g Introductory Tutorial (http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_tutorial/index.htm).
    At the point 'Map the Java Classes: Create One-to-One Mappings' (http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_tutorial/index.htm) I'm not able to select a table reference because there is no one available.
    As result i get the following message after generating 'Mapping Status Report':
    TopLink Map 'tut01Map' -> One of the packages is incomplete.
    Package example.model -> One of the descriptors in this package is incomplete.
    Descriptor Employee -> Some mappings are incomplete.
    Mapping address -> No table reference is selected.
    Mapping address -> Table reference is invalid because of the target table chosen.
    Mapping version -> Mapping references write lock field stored in cache, but is not read-only.
    Mapping phoneNumbers -> No table reference is selected.
    Mapping phoneNumbers -> Table reference is invalid because of the target table chosen.
    Descriptor PhoneNumber -> Some mappings are incomplete.
    Descriptor PhoneNumber -> The following primary key fields are unmapped: EMP_ID
    Descriptor PhoneNumber -> The following primary key fields have no writable mappings: EMP_ID
    Mapping owner -> No table reference is selected.
    Mapping owner -> Table reference is invalid because of the target table chosen.
    End TopLink Map 'tut01Map'
    Did I make a mistake or is there a wrong configuration? Please help.
    I'm using:
    JDeveloper 10.1.3.2.0
    MySQL 5.0.33 with Connector/J 5.0.5
    Windows XP
    Thanks, TGau
    Message was edited by:
    TGau
    Update

    Yes I did. But my database storage engine is set to MyISAM which don't support foreign keys. So this 'error' results from database configuration (Info: InnoDB do support foreign keys).
    I'm wondering why the queries didn't throw any errors. So the foreign key/reference part was just skipped.
    Thank you very much, rsapir.
    PS:
    How can I configure configure 'application side' references/associations? It is described in the TopLink Developers Guide on site 34-10 ... but I have no Add/New Buttons?

Maybe you are looking for

  • Is there a plug-in I am missing or that I can get?

    This may seem silly....please don't flame me. I tried to get on the disneyland web site to order tickets, check prices. I cannot get the page to work. I have tried this at home and on my laptop running safari 3.0.4 It runs ok on my friends pc. I do n

  • Connection closed message by RFC function module.

    Hi experts, I have an RFC function module where I have no own exception defined. I use 'standard' ones. EXCEPTIONS   communication_failure = 1 MESSAGE ls_proto-message   system_failure        = 2 MESSAGE ls_proto-message Inside this FM I do update of

  • Incorrect pricing surely? CS5 Master Collection upgrade

    Upgrading from CS4 Design Standard to CS5 Master Collection is cheaper in all languages except in English (i.e. German, Dutch, Italian, etc are cheaper than the English Version)! English is cheapest in all other upgrades i.e. to Production Premium (l

  • Is there anyway to edit gapless playback info in iTunes 11?

    I know that one of the many bizzare and ridiculous changes in iTunes 11 is that they removed gapless playback options, which I just REALLY can't understand why they'd do. So I'm just wondering if there is any way through something 3rd party or anythi

  • Not Recognizing Serial Number

    For awhile now, my Dreamweaver CS6 does not recognize my serial number. I bought it with the Production Premium CS6 Suite. I've tried to put in my serial number numerous times and nothing it working. It says that it is not a valid Dreamweaver Serial