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

Similar Messages

  • Excel XML map problem with Greek characters.

    Hi,
    I created a dashboard with XML map connetion. My embeded spreadsheet is linked to an xml file which contains my TOP 50 Customers.
    Customers names are in Greek so my xml Header is like:
    <?xml version="1.0" encoding="ISO-8859-7"?>
    ISO-8859-7 is the Greek encoding for xml.
    After embeding the spreadsheet into the dashboard i add a list component to present my TOP 50 Customers.
    So far so good.
    Then i add a refresh conection button to update my TOP 50 list. In preview mode everythinng works fine. But when i try to update my data by clicking the refresh button my list is updated but the customers names is turned to unidentified characters.
    Is there any encoding problem or this is Xcelsius issue?
    I use Xcelsius 2008 sp3 fp 3.2

    You are right.
    I opened the XML file with notepad and saved it with utf-8 encode, also changed the xml tag to <?xml version="1.0" encoding="UTF-8"?> and it worked fine.
    I map it in Excel Spreadsheet without problems and after refreshing in Xcelsius the characters are diplayed normaly.
    So, correct me if i am wrong, the problem is the file encoding, no the xml encoding.
    Both, file and xml encoding should be UTF-8.
    As i mentioned before my xml files are Crystal Report 2008 reports which are exported as text files with .xml extension, so i have to look for answers in other forum.
    thank you

  • Excel XML map problem with numbers.

    Hi Xcelsius gurus,
    Once again i need your help.
    I use Excel XML maps to get data into my embedded spreadsheet, my data are current year sales per month like below:
    115.450,36
    220.336,20
    189.222,56
    200.005,48
    just numbers.
    After inserting the xml data i am not able to use them. No chart, No list, No gause can present my data. Like there is no data.
    I realised that after mapping the XML, spreadsheet's cells showing an error, when i click on error icon there is an option to convert data to number, that fix the problem.
    What could i do to solve this issue? Is there any problem with my XML file?
    Pease help me with this one, i am confused.

    Hi:
       what is your xml file format?
       you can try some ordinary xml format instead, here is a example:
       <?xml version="1.0" encoding="ISO-8859-1"?>
    <bookstore>
    <book catalog="Programming">
    <title lang="en">C++ Programming Language</title>
    <author>Bjarne Stroustrup</author>
    <year>998</year>
    <price>198.0</price>
    </book>
    <book catalog="Networking">
    <title lang="en">TCP/IP Illustrated</title>
    <author>Richard Stevens</author>
    <year>1996</year>
    <price>156.0</price>
    </book>
    </bookstore>

  • Excel XML Maps Problem

    When I import a Excel 2003 XLS file with a Excel 2003 XML map defined I can see the data update if I use the refresh buttom on the spreadsheet pane of Xcelsius 2008 but nothing happens when I export the file as a SWF no matter what I set the refresh properties to?
    Also when I bring up the Data > Connections Menu and try to ADD <Excel XML Maps> I do not get a dialog box on the right?  The <Excel XML Maps> shows as an Existing Connection but does no show any information in the right panel?
    Hope someone can help!
    Tom Ebert

    Thanks guys for your responces.
    Here is what I learned.  Xcelsius 2008 does indeed supports Web Services.  When I was exporting my Excel spreadsheets as XML and trying to refer to it in my SWF file it seems that the Excel XML file does not have the required mapping / schema.
    Soooooooo I'm going to work with a friend who actuall understands Web Services and XML.
    Thanks again for your reply...te

  • Flat File to XML mapping Problem

    I am facing some issues in mapping from flat file to XML. I have not reached to the stage of actually executing the scenario and the problem has not advanced beyond mapping tests.
    Following are structures of inbound flat file (as specified in content conversion parameters of sender adapter)
    Document Name     &#61664;     MMADealerStatementInbound_MT
    Recordset Name     &#61664;     MMADealerStmtInbound_Type
    Recordset Structure &#61664;
    BatchHeader,1,DealerHeader1,,DealerHeader2,,DealerDetail,,DealerAgeing,,Trailer,1
    Recordset Sequence &#61664;          Ascending
    Key Field Name     &#61664;     RecordType
    Key Field Type          &#61664;     String (Case Sensitive)
    Following are structures of Outbound XML file needed
    All DealerDetail nodes are lumped together in first DealerStmt nodes. They need to be distributed across many DealerStmt nodes.
    Company          CompanyName                    25
    Company          CompanyAddress          StreetAddress     Company Street Address     50
    Company          CompanyAddress          City     Company City     40
    Company          CompanyAddress          State     Company State     3
    Company          CompanyAddress          ZIP     Company ZIP     10
    Company          CompanyAddress          Country     Company Country     3
    Company          RunParams          RunDate     Statement Run date     8
    Company          RunParams          StmtPeriod     Statement Period     20
    DealerStmt     0-unbounded     DealerNumber                    10
    DealerStmt     0-unbounded     DealerName                    35
    DealerStmt     0-unbounded     DealerAddress          StreetAddress     Dealer Street Address     50
    DealerStmt     0-unbounded     DealerAddress          City     Dealer City     40
    DealerStmt     0-unbounded     DealerAddress          State     Dealer State     3
    DealerStmt     0-unbounded     DealerAddress          ZIP     Dealer ZIP     10
    DealerStmt     0-unbounded     DealerAddress          Region     Dealer Region     4
    DealerStmt     0-unbounded     DealerRemitToAddress          CompanyName     Company Name     50
    DealerStmt     0-unbounded     DealerRemitToAddress          StreetAddress1     Street Address 1     50
    DealerStmt     0-unbounded     DealerRemitToAddress          StreetAddress2     Street Address 2     50
    DealerStmt     0-unbounded     DealerRemitToAddress          StreetAddress3     Street Address 3     50
    DealerStmt     0-unbounded     DealerDetail     0-unbounded     DocDate     Document Date     8
    DealerStmt     0-unbounded     DealerDetail     0-unbounded     InvoiceNumber     Invoice Number     10
    DealerStmt     0-unbounded     DealerDetail     0-unbounded     TransDescription     Transaction Description     50
    DealerStmt     0-unbounded     DealerDetail     0-unbounded     TransAmount     Transaction Amount     16
    DealerStmt     0-unbounded     DealerDetail     0-unbounded     AmountSign     Amount Sign     1
    DealerStmt     0-unbounded     DealerAgeing          CurrentBal     Current Balance     15
    DealerStmt     0-unbounded     DealerAgeing          Bal1to31days     Balance 1 to 31 Days     15
    DealerStmt     0-unbounded     DealerAgeing          BalOver31     Over 31 days Old     15
    DealerStmt     0-unbounded     DealerAgeing          BalOver61     Over 61 days Old     15
    DealerStmt     0-unbounded     DealerAgeing          BalOver92     Over 92 days Old     15
    DealerStmt     0-unbounded     DealerAgeing          BalOver123     Over 123 days Old     15
    Trailer          DealersCount                    5
    Trailer          TransCount                    10
    Trailer          TotalAmount                    20
    Here is the mapping I used for this node.
    /ns0:MMADealerStatementOutbound_MT/MMADealerStmtOutbound_Type/DealerStmt/DealerDetail=ifWithoutElse(stringEquals(/ns0:MMADealerStatementInbound_MT/MMADealerStmtInbound_Type/DealerDetail/RecordType=, const()), SplitByValue(/ns0:MMADealerStatementInbound_MT/MMADealerStmtInbound_Type/DealerDetail=))
    My email address is [email protected] and i can send some screen shots to understand better.
    I need help of XI mapping Gurus.
    Thanks
    Rajesh

    HI,
    Possible mention the source Message/Data Type and Target Data Type and Mapping Rules reuired. Then I think it may be useful to give some hints.
    btw , What is the error in Mapping ?
    Regards,
    Moorthy

  • Castor XML mapping problems

    I am using Castor to bind XML to Java objects. I am using a mapping file.
    My XML file consists of a lot of namespaces.
    How can i specify these namespaces in the mapping file?
    Thanks in advance

    Please do not reply to this post as it has been repeated. Actually yesterday I was clicking on 'post' button many times yet the page didnt get redirected to the list. So I felt that the topic has to be posted today.
    Sorry for the undue trouble

  • 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

  • Persistence-unit-defaults in orm.xml do not impact TopLink Essentials?

    Hi,
    I have configured a default schema in the persistence-unit-defaults section of the orm.xml mapping file:
    <persistence-unit-metadata>
         <persistence-unit-defaults>
              <schema>SCHEMA_NAME</schema>     
         </persistence-unit-defaults>
    </persistence-unit-metadata>
    The queries that TopLink JPA is generating (and logging) do not qualify any table name with the schema as configured above. It seems that the persistence-unit-default settings are ignored by TopLink JPA?
    N.B: TopLink mentions that it is searching for a file named orm.xml and that it found one - so the file should be processed by TopLink. ("Found a default mapping file at ...")
    Any ideas?

    Thank you for mentioning that workaround.
    Regarding to the results of my tests, the persistence-unit-defauls "schema" does not affect sequences? Is this part of the bug and can expected to be fixed or is the schema/owner of sequences outside the JPA spec?
    currently I found no other solution than to specify the default schema in the persistence-unit-defaults in orm.xml AND declarate all sequences used with the fully qualified name, i.e. when switching the schema this would require changing it at multiple points....
    regards,
    hans

  • 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).

  • Problem with castor xml mapping

    Hi,
    we have following problem with castor xml mapping.
    How to use references in the collections(Hashmap or vector)?
    WE have a method called getAttribute map which will return a hashmap consist different type of objects. We want to keep only the
    references of objects if that object occurs more than once,instead of keeping the whole object
    Following is the the xml mapping file.
    <mapping>
    <class name="com.opvista.ndtool.core.mos.ManagedObject" identity="Id" auto-complete="false" verify-constructable="false">
    <map-to xml="ManagedObject"/>
    <field name="Id" get-method="getId" set-method="setId" type="string">
    <bind-xml name="Id" node="attribute"/>
    </field>
    <field name="AttributeMap" type="org.exolab.castor.mapping.MapItem" collection="map" get-method="getAttributeMap">
    <bind-xml name="AttributeMap" node="element">
         <class name="org.exolab.castor.mapping.MapItem">
    <field name="key" type="java.lang.Object">
         <bind-xml name="key" node="attribute"/>
    </field>
    <field name="value" type="java.lang.Object">
         <bind-xml name="value" node="element" reference="true"/>
         </field>
    </class>
         </bind-xml>
    </field>
    </class>
    </mapping>
    we are using reference=true for the values. But it will throw below exception.
    Unable to resolve ID for instance of class 'java.lang.String' due to the following error: Unable to resolve ClassDescriptor.
         at org.exolab.castor.xml.Marshaller.getObjectID(Marshaller.java:1988)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1628)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1831)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1814)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1825)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:821)
    Please help us to overcome from this problem?
    Thanks,
    Dileep

    for your ref here is what i think the basic mapping file would look like
    <class name="Person">
    <map-to xml="person"/>
    <field name="name" type="string">
    <bind-xml name="name" node="attribute" />
    </field>
    <field name="age" type="string">
    <bind-xml name="age" node="attribute" />
    </field>
    </class>
    <class name="MetaPerson">
    <map-to xml="person"/>
    <field name="dependents" type="string">
    <bind-xml name="dependents" node="attribute" />
    </field>
    <field name="presentAdd" type="string">
    <bind-xml name="present_add " node="attribute" />
    </field>
    <field name="permanentAdd" type="string">
    <bind-xml name="permanent_add " node="attribute" />
    </field>
    </class>
    however i am still not clear as to how i can use the metaperson object in the person class as well as in the mapping file.
    hope this gives a better idea abt my problem statement.
    Please help me out

  • ExcelXML mapping---problem with XML maps in Excel sheet

    Hi Friends,
    I have one issue with ExcelXML mapping in Xcelsius.
    The problem is I have designed one dashboard using ExcelXML mapping and everything is working fine but I was afraid that  I could not able to find the mappings which were embedded in Excel.It happened many times.What I was doing is everytime Im re-mapping.I could be a big problem for me to do this procedire for everytime.How to recover my XML maps into excel sheet.Can anyone please provide the solution to achieve this.

    Shouldnt it be equivalent ? I mean, as far as I know the ns0: shouldnt be a problem
    when you have a namespace in the message then you need to associate it with some prefix....since ns0 (or any other prefix) is not present you are getting the error....having the namespace but not ns0 is the problem.
    XMLAnonymizer bean may help you to add the namespace prefix...

  • Kodo extensions in orm.xml?

    I'm evaluating Kodo for use with JPA, but I would like to use externalized mapping files. These work fine for standard "to the spec" mappings, but I'd like to be able to use some of the Kodo-specific extensions (such as custom field handlers). Is this possible within an externalized JPA mapping file (e.g. orm.xml)? All of the docs that I have found for Kodo JPA use annotations.

    "Amol" <[email protected]> writes:
    I have been going thru mails in the newsgrp, for help in my work and I
    found a lot of extensions used (r they only kodo-specific). I have gone
    thru all of the documentation tht comes with 2.2 release but havent a
    documentation for this extensions. Where can i find them.The JDO standard defines a syntax for adding vendor-specific metadata to
    the JDO metadata files. So yes, the extensions that you are referring to
    are Kodo-specific.
    Most of our vendor extensions are used for controlling the
    object-relational mapping that Kodo performs.
    Look in the metadata and existing schema sections of the 2.2.2
    documentation for more information on possible extensions. The 2.2.3
    documentation is formatted slightly differently; it contains an appendix
    with a list of all extensions supported by Kodo.
    -Patrick
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Reference to superclass in orm.xml required?

    Hi,
    I've been experimenting with TopLink essentials for the past few days and am pretty impressed so far. Nice work :)
    Just one thing I noticed: it seems that if I create an orm.xml for an entity, I must include an <entity> tag for that entity's superclass even though the superclass's metadata has already been loaded from another orm.xml file. TopLink doesn't seem to demand a metadata-complete mapping for the superclass, but I was wondering if it is required by the JPA spec.
    The way my app is distributed prevents me from having a single orm.xml file.
    Roger

    I've discovered that you also need a entry for entities in relationships (or one-to-one relationships at least). Otherwise, the exception is
    Exception [TOPLINK-41] (Oracle TopLink Essentials - 2006.5 (Build 060511)):
              oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: A non-read-only mapping must be defined for the
              sequence number field.
    Descriptor: RelationalDescriptor(figbird.commerce.entities.Product -->
              [DatabaseTable(fb_metadata), DatabaseTable(FB_PRODUCTS)])

  • 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

  • List View Bound to XML Map Data

    HI Have a list view that is bound to xml mapped data.  It seems that on connection refresh that new data is not being updated into the SWF.  My Binding is directly onto the cell ranges that are mapped into excel, so on updates the size of the maped table changes/rewrites over the old data.
    When I refresh I am not picking up the newest data in the list view.  Any thoughts on this on how I can fix.
    Regards,
    Mark

    Thank you Ganesh, but I am not on Enterprise edition.  I am successfully bringing in live xml data, however mapping more than one Query result from one xml file is giving my project some problems.  Refreshing a list View I think is causing this issue.  From within my project in design view I can Refresh the data.
    When I publish the file to html/SWF when I refresh other components are refreshing but the list view and one other is not refreshing.....

Maybe you are looking for

  • How to disable external requests to J2EE Engine

    Hi all, We have setup an EP6 SP9 SR1 portal environment. For security reasons, we have implemented SSL between the client and IIS, and between IIS and the J2EE engine. We want the users to access the portal via IIS, and disable direct access via WAS.

  • How to write into ldt log file in case of custom lct file

    Hi Experts, I have created one custom lct file for one of my requirement, from that I am calling database package for  UPLOAD. I want to write message into ldt log file if some validation fails. Can anyone suggest how can I write messages into ldt lo

  • How to open a damage application

    I erased system preferences and itunes by mistake

  • Use 10.8.2, but somehow with old version of Notes

    Until yesterday, I accessed Notes easily and pretty much daily. However, did a Spotlight search for a list of DVDs, and that turned my 10.8.2 Notes to a smaller virtual tablet. This is what I get: It looks like a prior version of Notes, like an older

  • Alternative for the ActiveX object for the other browsers excluding IE?

    I need open a word document (Doc/Docx) then edit and save   in client side itsetf.forthat i'm using ActiveXObject and javascript.it is working fine with IE but it's not working in other browsers(Chrome,Firefox).                     var w = new Active