JPA - generate orm.xml from existing JPA annotations

Hi,
Is there any tool which can be used to generate the orm.xml file from existing JPA java annotated source files?
Thank you,
Virgil

Yes. Map some of the classes with JPA annotations or orm.xml, for the other leave them unmapped, and don't list them in your persistence.xml. Then in a SessionCustomizer you can load your native EclipseLink project.xml file using the XMLProjectReader, and then manually add the descriptors from the Project to the JPA EclipseLink Session using DatabaseSession.addDescriptors(Project).

Similar Messages

  • How to generate orm.xml

    Hi,
    I would like to know how to generate orm.xml, the mapping file for JPA. I am using jdev 10.1.3.0.4.
    Thanks in advance

    There is not yet any built in support for this.
    What I have been doing is configuring JDev to understand the orm.xml schema so that when editing the file with JDeveloper it can assist me on the available elements and attributes as well as a default structure.
    JDeveloper :: Tools -> Preferences -> XML Schema -> Add
    jar:file:/C:/oracle/10.1.3.1/preview/jdev/toplink/jlib/toplink-essentials.jar!/orm_1_0.xsd
    Now when you wish to create an orm XML instance document in your project you can use:
    New -> General -> XML -> XML Document from Schema
    Select "Use Registered Schema"
    Select the ORM target namespace: http://java.sun.com/xml/ns/persistence/orm
    This will give you a basic orm.xml file properly configured which you can then use to define your mappings.
    Doug

  • Generating orm.xml

    is there any tool to generate orm.xml ?
    Thanks..

    No, as far as I know. Most IDEs are focusing on annotations. However the next releases of Dali for Eclipse and JDeveloper will provide orm.xml creation and editing support. Dali 1.0 is scheduled to be released as part of the coordinated Europa Eclipse release in June of next year--but milestone builds will be available sooner. Check out http://www.eclipse.org/dali and the milestone plan available from the sidebar on the right. The JDeveloper release date has not been finalized.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Generating an xml from a pl/sql procedure

    Hi Friends,
    I have come up with a requirement to generate an xml from a pl/sql procedure.
    I did some R & D and also got some sample procedures but could not understand the datatypes being used.
    The procedure declares variables like this:
    doc                  xmldom.DOMDocument;
    mainNode         xmldom.DOMNode;
    headerElem      xmldom.DOMElement; Pls could anyone tell what do these xmldom.DOMDocument, xmldom.DOMNode and xmldom.DOMElement mean?
    Later in the procedure, these variables are assigned values like
    doc      := xmldom.newDOMDocument;
    mainNode := xmldom.makenode(doc); This went a bouncer on me.
    Pls help.
    Thanks in advance ...!

    You can check this one -- Learned this from michael.
    satyaki>
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    satyaki>
    satyaki>
    satyaki>with person_h
      2  as
      3    (
      4      select 1 id, 'M' gender, 'W' race, '170' weight from dual union all
      5      select 1, 'M', 'W', '170' from dual union all
      6      select 1, 'M', 'W', '180' from dual union all
      7      select 1, 'M', NULL, '175' from dual union all
      8      select 1, NULL, 'W', NULL from dual
      9    )
    10    select xmlelement("Person",(
    11                                 select xmlagg(xmlelement("Sex", gender))
    12                                 from (
    13                                        select distinct gender
    14                                        from person_h
    15                                        where id = 1
    16                                        and gender is not null
    17                                      ) pg
    18                                ),
    19                                (
    20                                  select xmlagg(xmlforest(race as "Race"))
    21                                  from (
    22                                         select distinct race
    23                                         from person_h
    24                                         where id = 1
    25                                       ) pg
    26                                ),
    27                                (
    28                                  select xmlagg(xmlforest(weight as "Weight"))
    29                                  from (
    30                                         select distinct weight
    31                                         from person_h
    32                                         where id = 1
    33                                       ) pg
    34                                 )
    35                     ).getstringval() Res
    36    from dual;
    RES
    <Person><Sex>M</Sex><Race>W</Race><Weight>170</Weight><Weight>175</Weight><Weight>180</Weight></Person>
    satyaki>Regards.
    Satyaki De.

  • Generate of orm.xml from annotations

    Hi,
    How can a bunch of annotated classes (in JPA) can be processed so that an equivalent orm.xml is generated? The situation is like, I have many annotated Java files and I want to create equivalent orm.xml before the application is actually deployed in production.

    Hi,
    How can a bunch of annotated classes (in JPA) can be processed so that an equivalent orm.xml is generated? The situation is like, I have many annotated Java files and I want to create equivalent orm.xml before the application is actually deployed in production.

  • How to generate nested xml from a resultset

    there is a table which contains two field:key and fatherkey.
    like this:
    key fatherkey
    node1 root
    node2 node1
    node3 node2
    a tree can be builded from the table by recursion of key and fatherkey.
    now I want to use this table to generate a xml buffer.
    like this:
    <nodes>
    <node>
    <key>node1</key>
    <fkey>root</fkey>
    <node>
    <key>node2</key>
    <fkey>node1</fkey>
    <node>
    <key>node3</key>
    <fkey>node2</fkey>
    </node>
    </node>
    </node>
    </nodes>
    if oracle special sql --"Connect by" can be used ,it is so easy.
    but I can only use ansi sql.
    how to generate the xml?

    hehe, I solved it by JDom!
    source code is :
    public StringBuffer loadInitResource()
    Vector theOrphans = new Vector();
    StringBuffer theInitRes = new StringBuffer();
    Element root = new Element("NODES");
    String xsql = "SELECT KEY,FATHERKEY FROM TABLE1";
    ResultSete m_rs = stmt.executeQuery(xsql);
    try{
    while(m_rs.next())
    Element theNode = new Element("NODE");
    Element theFLD = new Element("ID");
    theFLD.addContent(m_rs.getString(1));
    theNode.addContent(theFLD);
    theFLD = new Element("SID");
    theFLD.addContent(m_rs.getString(2));
    theNode.addContent(theFLD);
    if("Root".equals(theNode.getChildText("SID").trim()))
    root.addContent(theNode);
    else if(x_setFatherRes(theNode, root))
    System.out.println("find");
    else
    theOrphans.addElement(theNode);
    Element theNode;
    int nIndex;
    boolean isDo = false;
    while(theOrphans.size()>0)
    System.out.println("find the orphan!");
    isDo = false;
    for(nIndex = 0;nIndex < theOrphans.size();nIndex++)
    theNode = (Element) theOrphans.get(nIndex);
    if(x_setFatherRes(theNode, root))
    theOrphans.remove(nIndex);
    isDo = true;
    System.out.println("found the orphan!");
    break;
    if(!isDo)
    System.out.println("some nodes could not be loaded!");
    break;
    //OutputStream out=new FileOutputStream("e:/XMLFile.xml");
    Document doc = new Document(root);
    XMLOutputter outputter = new XMLOutputter();
    outputter.setEncoding("GB2312");
    //outputter.output(doc,out);
    theInitRes = new StringBuffer(outputter.outputString(doc));
    catch(Exception e)
    m_error += e.toString() ;
    return theInitRes;
    private boolean x_setFatherRes(Element theSon,Element theFather)
    boolean isOK = false;
    String sFatherSID = theFather.getChildText("ID");
    if(sFatherSID != null)
    if(theSon.getChildText("SID").equals(sFatherSID.trim()))
    theFather.addContent(theSon);
    isOK = true;
    if(isOK)
    return isOK;
    Iterator iterator = theFather.getChildren().iterator();
    while(iterator.hasNext())
    Element theFather2 = (Element) iterator.next();
    isOK = x_setFatherRes(theSon,theFather2);
    if(isOK)
    break;
    return isOK;
    enjoy it!

  • WSImport-Error generating server code from existing wsdl ends in ERROR

    Hi,
    we have an existing wsdl, and need to change the Server Env. I am evaluating JAX-WS and WSImport, and it seems to be cool, but i have a Problem similar to this thread here:
    http://forum.java.sun.com/thread.jspa?threadID=739918&messageID=4245176
    I solved all JAXB Issues, but this error drives me crazy. All Types from XSD and WSDL are generated if i switch to extension="true". In my Opinion the message parts refer to schema types, i cant figure out, whats wronh there.
    [wsimport] parsing WSDL...
    [wsimport] [WARNING] cos-applicable-facets: Facet 'totalDigits' is not allowed by type Kontonummer.
    [wsimport] line 140 of file:/C:/Projekte/irech/dd/WebContent/customization/xsd/de/bankverlag/b2b/common.xsd
    [wsimport] [ERROR] Invalid wsdl:operation "init": its a rpc-literal operation, message part must refer to a schema type declaration
    [wsimport] line 101 of file:/C:/Projekte/irech/dd/WebContent/customization/NachfrageErstellung.wsdl
    wsdl:
    <?xml version='1.0'?>
    <wsdl:definitions name='foo' targetNamespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/'
    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
    xmlns:tns='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/'
    xmlns:ns0='http://systinet.com/xsd/SchemaTypes/'
    xmlns:xns9="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/schecknachfrage/erstellen.xsd"
    xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
    xmlns:map='http://systinet.com/mapping/'>
    <wsdl:types>
    <xsd:schema elementFormDefault="qualified"
    targetNamespace="http://systinet.com/wsdl/org/idoox/webservice/server/"
    xmlns:map="http://systinet.com/mapping/"
    xmlns:tns="http://systinet.com/wsdl/org/idoox/webservice/server/"
    xmlns:xns5="http://systinet.com/containers/literal/ms.net"
    xmlns:xns6="http://systinet.com/wsdl/org/idoox/config/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="http://systinet.com/wsdl/org/idoox/config/" schemaLocation="xsd/idoox.xsd"/>
    <xsd:import namespace="http://systinet.com/containers/literal/ms.net" schemaLocation="http://systinet.com/containers/literal/ms.net"/>
    <xsd:complexType name="WebServiceContext">
    <xsd:annotation>
    <xsd:appinfo>
    <map:java-type name="org.idoox.webservice.server.WebServiceContext"/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="contextData" nillable="true" type="xns5:Map"/>
    <xsd:element name="contextId" nillable="true" type="xsd:string"/>
    <xsd:element name="lifeCycleService" nillable="true" type="tns:LifeCycleService"/>
    <xsd:element name="rootPath" nillable="true" type="xsd:string"/>
    <xsd:element name="serviceConfigurable" nillable="true" type="xns6:Configurable"/>
    <xsd:element name="serviceInstanceConfigurable" nillable="true" type="xns6:Configurable"/>
    <xsd:element name="serviceInstanceName" nillable="true" type="xsd:string"/>
    <xsd:element name="serviceName" nillable="true" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="LifeCycleService">
    <xsd:annotation>
    <xsd:appinfo>
    <map:java-type name="org.idoox.webservice.server.LifeCycleService"/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence/>
    </xsd:complexType>
    </xsd:schema>
    <xsd:schema elementFormDefault="qualified" targetNamespace="http://systinet.com/xsd/SchemaTypes/"
    xmlns:tns="http://systinet.com/xsd/SchemaTypes/"
    xmlns:xns4="http://systinet.com/wsdl/org/idoox/webservice/server/"
    xmlns:xns5="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/common.xsd"
    xmlns:xns6="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/ueberweisungsnachfrage/erstellen.xsd"
    xmlns:xns7="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/common.xsd"
    xmlns:xns8="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/lastschriftnachfrage/erstellen.xsd"
    xmlns:xns9="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/schecknachfrage/erstellen.xsd"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/schecknachfrage/erstellen.xsd"/>
    <xsd:import namespace="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/lastschriftnachfrage/erstellen.xsd"/>
    <xsd:import namespace="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/common.xsd"/>
    <xsd:import namespace="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/ueberweisungsnachfrage/erstellen.xsd"/>
    <xsd:import namespace="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/common.xsd"/>
    <xsd:import namespace="http://systinet.com/wsdl/org/idoox/webservice/server/"/>
    <xsd:element name="p0" nillable="true" type="xns4:WebServiceContext"/>
    <xsd:element name="p0_1" nillable="true" type="xns5:UserContext"/>
    <xsd:element name="p1" nillable="true" type="xns6:UeberweisungsnachfrageErstellungsformular"/>
    <xsd:element name="NachfrageErstellungResult_Response" nillable="true" type="xns7:NachfrageErstellungResult"/>
    <xsd:element name="p0_2" nillable="true" type="xns5:UserContext"/>
    <xsd:element name="p1_3" nillable="true" type="xns8:LastschriftnachfrageErstellungsformular"/>
    <xsd:element name="p0_4" nillable="true" type="xns5:UserContext"/>
    <xsd:element name="p1_5" nillable="true" type="xns9:SchecknachfrageErstellungsformular"/>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name='NachfrageErstellung_erstelleSchecknachfrage_1_Request'>
    <wsdl:part name='p0' element='ns0:p0'/>
    <wsdl:part name='p1' element='ns0:p1_5'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_init_1_Request'>
    <wsdl:part name='p0' element='ns0:p0'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_destroy_1_Request'/>
    <wsdl:message name='NachfrageErstellung_erstelleLastschriftnachfrage_Response'>
    <wsdl:part name='response' element='ns0:NachfrageErstellungResult_Response'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_erstelleLastschriftnachfrage_1_Request'>
    <wsdl:part name='p0' element='ns0:p0_2'/>
    <wsdl:part name='p1' element='ns0:p1_3'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_erstelleUeberweisungsnachfrage_Response'>
    <wsdl:part name='response' element='ns0:NachfrageErstellungResult_Response'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_erstelleUeberweisungsnachfrage_1_Request'>
    <wsdl:part name='p0' element='ns0:p0_1'/>
    <wsdl:part name='p1' element='ns0:p1'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_destroy_Response'/>
    <wsdl:message name='NachfrageErstellung_erstelleSchecknachfrage_Response'>
    <wsdl:part name='response' element='ns0:NachfrageErstellungResult_Response'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_init_Response'/>
    <wsdl:portType name='NachfrageErstellung'>
    <wsdl:operation name='init' parameterOrder='p0'>
    <wsdl:input message='tns:NachfrageErstellung_init_1_Request'/>
    <wsdl:output message='tns:NachfrageErstellung_init_Response'/>
    </wsdl:operation>
    <wsdl:operation name='destroy'>
    <wsdl:input message='tns:NachfrageErstellung_destroy_1_Request'/>
    <wsdl:output message='tns:NachfrageErstellung_destroy_Response'/>
    </wsdl:operation>
    <wsdl:operation name='erstelleUeberweisungsnachfrage' parameterOrder='p0 p1'>
    <wsdl:input message='tns:NachfrageErstellung_erstelleUeberweisungsnachfrage_1_Request'/>
    <wsdl:output message='tns:NachfrageErstellung_erstelleUeberweisungsnachfrage_Response'/>
    </wsdl:operation>
    <wsdl:operation name='erstelleLastschriftnachfrage' parameterOrder='p0 p1'>
    <wsdl:input message='tns:NachfrageErstellung_erstelleLastschriftnachfrage_1_Request'/>
    <wsdl:output message='tns:NachfrageErstellung_erstelleLastschriftnachfrage_Response'/>
    </wsdl:operation>
    <wsdl:operation name='erstelleSchecknachfrage' parameterOrder='p0 p1'>
    <wsdl:input message='tns:NachfrageErstellung_erstelleSchecknachfrage_1_Request'/>
    <wsdl:output message='tns:NachfrageErstellung_erstelleSchecknachfrage_Response'/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name='NachfrageErstellung' type='tns:NachfrageErstellung'>
    <soap:binding transport='http://schemas.xmlsoap.org/soap/http' style='rpc'/>
    <wsdl:operation name='init'>
    <map:java-operation name='init' signature='KExvcmcvaWRvb3gvd2Vic2VydmljZS9zZXJ2ZXIvV2ViU2VydmljZUNvbnRleHQ7KVY='/>
    <soap:operation soapAction='' style='rpc'/>
    <wsdl:input>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#init#KExvcmcvaWRvb3gvd2Vic2VydmljZS9zZXJ2ZXIvV2ViU2VydmljZUNvbnRleHQ7KVY='/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#init#KExvcmcvaWRvb3gvd2Vic2VydmljZS9zZXJ2ZXIvV2ViU2VydmljZUNvbnRleHQ7KVY='/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name='destroy'>
    <map:java-operation name='destroy' signature='KClW'/>
    <soap:operation soapAction='' style='rpc'/>
    <wsdl:input>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#destroy#KClW'/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#destroy#KClW'/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name='erstelleUeberweisungsnachfrage'>
    <map:java-operation name='erstelleUeberweisungsnachfrage' signature='KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2UvZXJzdGVsbGVuL1VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2VFcnN0ZWxsdW5nc2Zvcm11bGFyOylMZGUvYmFua3ZlcmxhZy9pcmVjaGVyY2hlL2J1c2luZXNzL3NoYXJlZC9iMmIvZ2VuZXJhdGVkL25hY2hmcmFnZS9jb21tb24vTmFjaGZyYWdlRXJzdGVsbHVuZ1Jlc3VsdDs='/>
    <soap:operation soapAction='' style='rpc'/>
    <wsdl:input>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleUeberweisungsnachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2UvZXJzdGVsbGVuL1VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2VFcnN0ZWxsdW5nc2Zvcm11bGFyOylMZGUvYmFua3ZlcmxhZy9pcmVjaGVyY2hlL2J1c2luZXNzL3NoYXJlZC9iMmIvZ2VuZXJhdGVkL25hY2hmcmFnZS9jb21tb24vTmFjaGZyYWdlRXJzdGVsbHVuZ1Jlc3VsdDs='/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleUeberweisungsnachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2UvZXJzdGVsbGVuL1VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2VFcnN0ZWxsdW5nc2Zvcm11bGFyOylMZGUvYmFua3ZlcmxhZy9pcmVjaGVyY2hlL2J1c2luZXNzL3NoYXJlZC9iMmIvZ2VuZXJhdGVkL25hY2hmcmFnZS9jb21tb24vTmFjaGZyYWdlRXJzdGVsbHVuZ1Jlc3VsdDs='/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name='erstelleLastschriftnachfrage'>
    <map:java-operation name='erstelleLastschriftnachfrage' signature='KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2xhc3RzY2hyaWZ0bmFjaGZyYWdlL2Vyc3RlbGxlbi9MYXN0c2NocmlmdG5hY2hmcmFnZUVyc3RlbGx1bmdzZm9ybXVsYXI7KUxkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2NvbW1vbi9OYWNoZnJhZ2VFcnN0ZWxsdW5nUmVzdWx0Ow=='/>
    <soap:operation soapAction='' style='rpc'/>
    <wsdl:input>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleLastschriftnachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2xhc3RzY2hyaWZ0bmFjaGZyYWdlL2Vyc3RlbGxlbi9MYXN0c2NocmlmdG5hY2hmcmFnZUVyc3RlbGx1bmdzZm9ybXVsYXI7KUxkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2NvbW1vbi9OYWNoZnJhZ2VFcnN0ZWxsdW5nUmVzdWx0Ow=='/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleLastschriftnachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2xhc3RzY2hyaWZ0bmFjaGZyYWdlL2Vyc3RlbGxlbi9MYXN0c2NocmlmdG5hY2hmcmFnZUVyc3RlbGx1bmdzZm9ybXVsYXI7KUxkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2NvbW1vbi9OYWNoZnJhZ2VFcnN0ZWxsdW5nUmVzdWx0Ow=='/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name='erstelleSchecknachfrage'>
    <map:java-operation name='erstelleSchecknachfrage' signature='KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3NjaGVja25hY2hmcmFnZS9lcnN0ZWxsZW4vU2NoZWNrbmFjaGZyYWdlRXJzdGVsbHVuZ3Nmb3JtdWxhcjspTGRlL2Jhbmt2ZXJsYWcvaXJlY2hlcmNoZS9idXNpbmVzcy9zaGFyZWQvYjJiL2dlbmVyYXRlZC9uYWNoZnJhZ2UvY29tbW9uL05hY2hmcmFnZUVyc3RlbGx1bmdSZXN1bHQ7'/>
    <soap:operation soapAction='' style='rpc'/>
    <wsdl:input>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleSchecknachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3NjaGVja25hY2hmcmFnZS9lcnN0ZWxsZW4vU2NoZWNrbmFjaGZyYWdlRXJzdGVsbHVuZ3Nmb3JtdWxhcjspTGRlL2Jhbmt2ZXJsYWcvaXJlY2hlcmNoZS9idXNpbmVzcy9zaGFyZWQvYjJiL2dlbmVyYXRlZC9uYWNoZnJhZ2UvY29tbW9uL05hY2hmcmFnZUVyc3RlbGx1bmdSZXN1bHQ7'/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleSchecknachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3NjaGVja25hY2hmcmFnZS9lcnN0ZWxsZW4vU2NoZWNrbmFjaGZyYWdlRXJzdGVsbHVuZ3Nmb3JtdWxhcjspTGRlL2Jhbmt2ZXJsYWcvaXJlY2hlcmNoZS9idXNpbmVzcy9zaGFyZWQvYjJiL2dlbmVyYXRlZC9uYWNoZnJhZ2UvY29tbW9uL05hY2hmcmFnZUVyc3RlbGx1bmdSZXN1bHQ7'/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name='JavaService'>
    <wsdl:port name='NachfrageErstellung' binding='tns:NachfrageErstellung'>
    <soap:address location='urn:unknown-location-uri'/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    One can use Clientgen <binding> element to specify custom binding files.
    Here is a WLS workaround for the problem of unresolved xs:schema references in WSDL
    1. save XMLSchema.xsd and customization.xjb into a local directory called bindingDir,
    2. use the following script to gen clientside artifacts.
    <clientgen>
    <binding dir="bindingDir" includes="*">
    </clientgen>
    Thanks
    Bethune

  • Generate Valid XML from pl/sql

    Hi,
    A new-bee here. I want to know how to generate a valid xml document. I have a schema which by the way includes two other schemas. This is the code I am using but I don't know how to make sure that I insert the child nodes in the right sequence. Any sample code that you guys can provide would be greatly appreciated.
    FUNCTION GenerateOrderXML(
              o_ErrorCode     OUT     NUMBER,
              o_ErrorText     OUT     VARCHAR2,
              i_AccountID     IN     document.documentid%TYPE,
              i_OrderName IN VARCHAR2) RETURN XMLType
    IS
         v_Doc     XMLDOM.DOMDocument;
         v_MainNode     XMLDOM.DOMNode;
         v_RootElmt     XMLDOM.DOMElement;
         v_RootNode     XMLDOM.DOMNode;
         v_TmpCLOB     CLOB := ' ';
    CURSOR CURSOR_SERVOBJ
              IS
              SELECT XMLTAG, XMLVALUE FROM SERVICEOBJECT
                   WHERE SERVICEOBJECT.ID < 500
                   ORDER BY SEQUENCE;
    -- Create xml root element
         v_Doc := XMLDOM.newDOMDocument;
         v_MainNode := XMLDOM.makeNode(v_Doc);
         v_RootElmt := XMLDOM.createElement(v_Doc, 'OrderRequest');
         v_RootNode := XMLDOM.appendChild(v_MainNode, XMLDOM.makeNode(v_RootElmt));
         -- Add OrderName, OrderType
         AddChild(v_Doc, v_RootNode, 'orderName', i_OrderName);
         AddChild(v_Doc, v_RootNode, 'orderType', 'NA');
         -- Add all attributes
         FOR v_NameValue IN CURSOR_SERVOBJ
         LOOP
              AddChild(v_Doc, v_RootNode, v_NameValue.XMLTAG, v_NameValue.XMLVALUE);
         END LOOP;
         --     XMLDOM.writeToBuffer(v_Doc, v_Buffer);
         XMLDOM.writeToClob(v_Doc, v_TmpCLOB);
         o_ErrorCode := 0;
         RETURN XMLType.createXML(v_TmpClob);
    END;

    The r was a typo. The messge is correct.
    Here is another problem I am having. I can't import a schema that includes another schema. When I try to register the third schema I get the following error. The first two register without any errors and when I run this
    select schema_url from user_xml_schemas;
    I see
    http://www.bbc.com/XMLSchema/sfi.xsd
    http://www.bbc.com/XMLSchema/ProductModel.xsd
    So why is my third schema not importing? Can you point me to any good documentation/tutorials on XML DB.
    Note: Thank you for your help so far.
    ERROR at line 1:
    ORA-31000: Resource 'ProductModel.xsd' is not an XDB schema document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 131
    ORA-06512: at line 6
    1st Schema Heading
    <xsd:schema xmlns="http://www.bbc.com/XMLSchema/bfi.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bbc.com/XMLSchema/bfi.xsd" elementFormDefault="qualified">
    2nd Schema Heading
    <xsd:schema xmlns="http://www.bbc.com/XMLSchema/ProductModel.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bbc.com/XMLSchema/ProductModel.xsd" elementFormDefault="qualified">
    3rd Schema Heading
    <xsd:schema xmlns="http://www.bbc.com/XMLSchema/ResourceOrder.xsd" xmlns:qb="http://www.bbc.com/XMLSchema/ProductModel.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bbc.com/XMLSchema/ResourceOrder.xsd" elementFormDefault="qualified">
    <xsd:import namespace="http://www.bbc.com/XMLSchema/ProductModel.xsd" schemaLocation="ProductModel.xsd"/>

  • Why not all jars picked up by ojdeloy and how to generate build.xml from command line and not JDEV GUI - quick question

    Hi All
    We have 11.1.1.7 ojdeploy to compile our app.
    We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation.
    eg:
      <path id="classpath">
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/a.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/b.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/c.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/d.jar"/>
    </path>
    Log Output -
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/bin/javac
    [ora:ojdeploy] -g
      [ora:ojdeploy] -Xlint:all
      [ora:ojdeploy] -Xlint:-cast
    [ora:ojdeploy] -Xlint:-empty
      [ora:ojdeploy] -Xlint:-fallthrough
      [ora:ojdeploy] -Xlint:-path
      [ora:ojdeploy] -Xlint:-serial
      [ora:ojdeploy] -Xlint:-unchecked
      [ora:ojdeploy] -source 1.6
      [ora:ojdeploy] -target 1.6
      [ora:ojdeploy] -verbose
      [ora:ojdeploy] -encoding Cp1252
      [ora:ojdeploy] -classpath
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/resources.jar:
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/rt.jar:
      [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/jsse.jar:
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/a.jar"/>
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/c.jar"/>
    1- Is it because it depends on how jpr or jws are configured ?
    2- How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?

    The first  warning is happening because you're stating drivers for input devices without need. You haven't disabled hotplug so evdev gets used instead of kbd. This is normal, and you should change the driver line from kbd to evdev so that whatever options (if any) you've specified for the keyboard get parsed.
    The second warning is about you not installing acpid.
    The third I have no idea about, but look at the synaptics wiki. None of the (WW) are related to your video card.
    And every card that has 2 or more output ports show up as "two cards". You also don't need to specify the pci port in xorg.conf. edit: this is the general case with laptops, might be different for desktops.
    When I do lspci -v I get:
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
    I/O ports at d0f0 [size=8]
    Memory at c0000000 (32-bit, prefetchable) [size=256M]
    Memory at dff00000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0
    Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
    Capabilities: <access denied>
    And it doesn't matter if it errs in trying to sli up with it self. That's just not a possibility.
    Last edited by gog (2009-10-15 23:59:49)

  • Generate ER model from existing database

    Hi,
    I was able to create a ER diagram based on the instructions in http://www.oracle.com/technology/obe/obe11jdev/11/db_dev/obe_%20databasedevmt.htm
    but the associations between the entities are not shown. Is there any setting that shows the associations ?
    Thanks,
    Mohan

    Hi,
    You should get the FK relationships by default (as in the OBE). However, it is possible to change the default through Tools -> Preferences -> Diagrams -> Database. Note that these settings only apply to new diagrams or new objects added to the diagram after the preference is set.
    Be aware that are not creating an ER diagram, this is a physical server model. Another possibility that your relationships are not displaying is that you have dragged tables onto the diagram that do not have FKs defined between them?
    Having said this is not an ER diagram you can change the way your FK are displayed from the default UML notation to ERD notation using the Property Inspector for the diagram.
    Hope this helps
    Susan
    http://www.susanduncan.blogspot.com

  • Generating database tables from Java classes

    Hi,
    I've encountered a number of tools which will create Java classes from database tables (e.g. JDeveloper has this functionality, Abator provides this for iBATIS, etc...).
    However, I've not been able to locate any tools that perform the opposite job - i.e. given a Java class, it generates a database table (or, presumably, some SQL).
    It's been suggested to me that Hibernate might provide this sort of capability, but if anybody has any experience of doing this, in any tool, I'd be interested to hear about it.
    Thanks,
    Alistair.

    Many thanks for the pointers.
    duffymo: I've taken a look at Middlegen (http://boss.bekk.no/boss/middlegen/index.html) but it seems that the first step is to specify the database schema, whereas I'm looking to generate the schema from existing code. Or have I missed something?
    Alistair.

  • About generating Java classes from XSD Schema ???

    I need a powerfull tool to generate Java classes from XML Schema. I want that generated classes to have the option to validate XML(to be JAXP1.2 compliant).
    I used XML Spy 5.4 but the generated classes can't validate an XML file.
    Can you help me with other tools that:
    - generate Java classes from XSD
    - generate sample XML from XSD
    - are JAXP1.2 compliant(validate a XML file with a schema)
    Thanks.

    You can also use Castor: http://www.castor.org
    It generates classes from XML Schemas and enables data
    binding without writing any line of a fuckin SAX
    parser :-)I evaluated Castor and JAXB and while JAXB isn't perfect, it's got some things over Castor. Castor almost looks abandonded when I go to the site. The documentation just sort of trails off.

  • JPA: Translating Annotations to Metadata (orm.xml)

    I'm trying to translate the commented annotations in the next two classes to metadata:
    package pfc.model;
    import java.io.Serializable;
    import java.util.Date;
    //import javax.persistence.*;
    //@Entity
    public class DadesComentari implements Serializable {
        //@Id
        //@Column(name = "id", nullable = false)
        private Integer id;
        //@Column(name = "accio")
        private Integer accio;
        //@Column(name = "idAutor", nullable = false)
        private String idAutor;
        //@Column(name = "perfilAutor", nullable = false)
        private Integer perfilAutor;
        //@Column(name = "dataCreacio", nullable = false)
        //@Temporal(TemporalType.TIMESTAMP)
        private Date dataCreacio;
        //@Column(name = "text", nullable = false)
        private String text;
        //@Column(name = "idIncidencia", nullable = false)
        private Integer idIncidencia;
         ...(Setters and getters)...
    package pfc.model;
    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.Date;
    //import javax.persistence.*;
    //@Entity
    public class DadesIncidencia implements Serializable {
        //@Id
        //@Column(name = "id", nullable = false)
        private Integer id;
        //@Column(name = "servAfectats", nullable = false)
        private Integer servAfectats;
        //@Column(name = "idCreador", nullable = false)
        private String idCreador;
        //@Column(name = "idTecnic")
        private String idTecnic;
        //@Column(name = "idTD")
        private String idTD;
        //@Column(name = "visitaSolicitada", nullable = false)
        private Boolean visitaSolicitada;
        //@Column(name = "dataCreacio", nullable = false)
        //@Temporal(TemporalType.TIMESTAMP)
        private Date dataCreacio;
        //@Column(name = "dataTancament")
        //@Temporal(TemporalType.TIMESTAMP)
        private Date dataTancament;
        //@Column(name = "nomClient")
        private String nomClient;
        //@Column(name = "cognomsClient")
        private String cognomsClient;
        //@Transient
        private ArrayList comentaris;
         ...(Setters and getters)...
    }To do it I have created the next file orm.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
                     version="1.0">
        <package>pfc</package>
        <entity class="pfc.model.DadesIncidencia" name="incidencia">     
            <attributes>
                <id name="id">
                    <column name="id" nullable="false"/>
                </id>
                <basic name="servAfectats">
                    <column name="servAfectats" nullable="false"/>
                </basic>
                <basic name="dataCreacio">
                    <column name="dataCreacio" nullable="false"/>
                    <temporal>TIMESTAMP</temporal>
                </basic> 
                <basic name="dataTancament">
                    <column name="dataTancament"/>
                    <temporal>TIMESTAMP</temporal>
                </basic>
                <basic name="idCreador">
                    <column name="idCreador" nullable="false"/>
                </basic>
                <basic name="idTecnic">
                    <column name="idTecnic"/>
                </basic>
                <basic name="idTD">
                    <column name="idTD"/>
                </basic>
                <basic name="visitaSolicitada">
                    <column name="visitaSolicitada" nullable="false"/>
                </basic>
                <basic name="nomClient">
                    <column name="nomClient"/>
                </basic> 
                <basic name="cognomsClient">
                    <column name="cognomsClient"/>
                </basic>  
                <transient name="comentaris"/>
            </attributes>
        </entity>
        <entity class="pfc.model.DadesComentari" name="comentari">
            <attributes>
                <id name="id">
                    <column name="id" nullable="false"/>
                </id>           
                <basic name="idIncidencia">
                    <column name="idIncidencia" nullable="false"/>
                </basic>
                <basic name="perfilAutor">
                    <column name="perfilAutor" nullable="false"/>
                </basic>
                <basic name="idAutor">
                    <column name="idAutor" nullable="false"/>
                </basic>
                <basic name="dataCreacio">
                    <column name="dataCreacio" nullable="false"/>
                    <temporal>TIMESTAMP</temporal>
                </basic>
                <basic name="accio">
                    <column name="accio" />
                </basic>
                <basic name="text">
                    <column name="text" nullable="false"/>
                </basic>           
            </attributes>
        </entity>
    </entity-mappings>Which I reference from the persistence.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
        <persistence-unit name="pfc" transaction-type="RESOURCE_LOCAL">
            <provider>oracle.toplink.essentials.PersistenceProvider</provider>
            <mapping-file>pfc/model/orm.xml</mapping-file>
            <!--<class>pfc.model.DadesIncidencia</class>
        <class>pfc.model.DadesComentari</class> -->
            <properties>
                <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
                <property name="toplink.jdbc.url" value="jdbc:mysql://localhost/pfc"/>
                <property name="toplink.jdbc.password" value=""/>
                <property name="toplink.jdbc.user" value="root"/>
            </properties>
        </persistence-unit>
    </persistence>Having done only these modifications, the next exception appears when trying to execute the application:
    Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: WebappClassLoader
      delegate: false
      repositories:
        /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@f4f44a
    Internal Exception: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: predeploy for PersistenceUnit [pfc] failed.
    Internal Exception: java.lang.NullPointerException
         at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:169)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
         at pfc.model.DAOFactory.connectarBD(DAOFactory.java:15)
         at pfc.model.FaçanaDelModel.obtenirDadesIncidencia(FaçanaDelModel.java:33)
         at pfc.IncidenciaController.handleRequest(IncidenciaController.java:18)Anybody can see what I'm not doing properly?
    Thank you in advance, and sorry for my "still in progress" English

    There is not yet any built in support for this.
    What I have been doing is configuring JDev to understand the orm.xml schema so that when editing the file with JDeveloper it can assist me on the available elements and attributes as well as a default structure.
    JDeveloper :: Tools -> Preferences -> XML Schema -> Add
    jar:file:/C:/oracle/10.1.3.1/preview/jdev/toplink/jlib/toplink-essentials.jar!/orm_1_0.xsd
    Now when you wish to create an orm XML instance document in your project you can use:
    New -> General -> XML -> XML Document from Schema
    Select "Use Registered Schema"
    Select the ORM target namespace: http://java.sun.com/xml/ns/persistence/orm
    This will give you a basic orm.xml file properly configured which you can then use to define your mappings.
    Doug

  • JPA - orm.xml mapping problem.

    Hi folks,
    I am trying to give entity mappings in orm .xml
    Sequence generation tag is not working fine for me.
    its giving me a xml parsing error.
    can some body give me a right combination .
    I want to give automatic generation for a database field which is not the primary key.
    My orm.xml file is given below....
    some body pls help me....
    <?xml version="1.0" encoding="UTF-8"?>
    <entity-mappings version="1.0" xmlns="http://java.sun.com/xml/ns/persistence/orm"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_1_0.xsd">
    <entity class="com.git.oms.common.entity.ORDReply" name="ORDReply" metadata-complete="false">
         <table name="ORDReply"/>
         <attributes>     
         <basic name="serialNo">
              <column name="SerialNo"/>
              <generated-value generator="ORDREPLY_SEQ" strategy="SEQUENCE"/>
              <sequence-generator name="ORDREPLY_SEQ" sequence-name="ORDREPLY_SEQ" allocation-size="1"/>
         </basic>      
         </attributes>
    </entity-mappings>

    Hi folks,
    I am trying to give entity mappings in orm .xml
    Sequence generation tag is not working fine for me.
    its giving me a xml parsing error.
    can some body give me a right combination .
    I want to give automatic generation for a database
    field which is not the primary key.
    My orm.xml file is given below....
    some body pls help me....
    <?xml version="1.0" encoding="UTF-8"?>
    <entity-mappings version="1.0" xmlns="http://java.sun.com/xml/ns/persistence/orm"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persist
    ence/orm orm_1_0.xsd">
    <entity class="com.git.oms.common.entity.ORDReply" name="ORDReply" metadata-complete="false">
    <table name="ORDReply"/>
    <attributes>
    <basic name="serialNo">
    <column name="SerialNo"/>
    <generated-value generator="ORDREPLY_SEQ" strategy="SEQUENCE"/>
    <sequence-generator name="ORDREPLY_SEQ" sequence-name="ORDREPLY_SEQ" allocation-size="1"/>
    </basic>
    </attributes>
    </entity-mappings>I am not able to configure a sequence for a Id coloumn also.
    Getting some xml parsing error. Some one please help me by giving some sample.
    I am also using same kind of orm.xml and sequence-generator

  • How to generate doc/lit/wrapped services from existing wsdl?

    Hello,
    I am using workshop 10.1 to generate webservices from existing wsdl files from workshop 8.1. The existings webservices are based on an xmlbean utility project.
    When I generate the webservice from the existing wsdl file it generates automatically services with doc/lit/bare operations. I found in the known issues that this combination is not supported in combination with xmlbeans.
    See: CR283457
    XBeans are not supported as parameters or return type for doc/lit/bare operations.
    Use of Xbeans as a parameter or return type with doc/lit/bare bindings is not supported in operations or callbacks and will result in a failure during deployment.
    Platform: All
    Workaround: Use doc/lit/wrapped for services that use XBeans as parameters or return types.
    The workaround state to use doc/lit/wrapped for services. My questions is how to do that since workshop has all control over the generation of the webservices? ?:|
    Thanks in advance,
    Martijn Baels
    Software Architect
    www.leanapps.com

    Hi Martijn
    If you do generate web service from the wsdl on a 9.2 project, it always uses jax-rpc types and there's no xmlbeans involved.
    If the wsdl is in the schemas folder and the xmlbeans builder is on, then you also have xmlbeans types created by the builder they aren't being used by the web service. You will still have problems, because some of the xmlbeans types may conflict with the jax-rpc types.
    so when we generate webservice from a wsdl it will never use xmlbeans type, even if the xml builder is on, because WLS doesn't support start from wsdl with xmlbeans types.
    Can you please attach the wsdl and the steps so I can replicate and see the issue?
    Thanks
    Vimala

Maybe you are looking for

  • Report -- How to get Options to show up in Report for a recurring payment

    If you want to help, look at prudenceconservancy.org. The recurring payments I do not get in my report the Donation type. For the non-recurring payments I get the donation type (membership, Eugene Chase Farm , Stone Dock.

  • Re:Issue with Sales Order block

    Hello Everyone, In my company they have some materials for which they are custom coded in a way that when the sales order is created with these materials  it immediately creates a production order for that particular material. These are high value ma

  • Sales org is invalid for Account

    Hi expert's              I am working on CRM2007 . Whenever  I create a Trade Promotion and select Account type  as "Account" and Planning Account as a BP which I have assigned to sales org,I am getting an error "*Sales org is invalid for Account*."

  • Uncontrolled scrolling to bottom of project

    earlier this eve I was changing keywords on some images in a project...when I started I could highlight a small group at a time and change them all; then that stopped working and I had to change them one at a time. Then the entire project started scr

  • Could not find Activity Tracing & Logging Console in EP

    Hi All, I have portal Admin rights and when I go to <b>System Admnistrator>Monitoring>Portal</b>, I could not find Logged on users, Activity Tracing, Logging Console in the Detailed Navigation. (but I could see and access Request Smmary, Request Over