Object XML Mapping
Dear All,
What is the best object XML Mapping framework
Thanks in advance
Castor is probably the easiest to work with but Apache Digester has better performance.
Similar Messages
-
Object-XML Binding: How do I map from java to enumerated xml tags
Hi. I'm new to Object-XML binding and toplink. XML that I'm trying to model in a schema has enumerated elements, e.g. </module_0></module_1><module_n> instead of many </module> elements. To simplify the schema I've opted to use </module> anyway with unbounded cardinality and imported this into a new project.
What I would like to know is if I can use Toplink to map the java object back to the enumerate element types and vice versa?
Thanks for your help.
GeePeeHi Geepee,
Below is an approach you can use if you have a fixed number of moduleX elements. In the example below X=3.
Assume a 2 object model Root & Module, where Root has a list of Module instances:
@XmlRootElement(name="root")
public class Root {
private List<Module> module = new ArrayList<Module>(3);
...// Accessors omitted
}It is currently not possible to map the items in the module list to the XML elements (module1-module3), but it would be possbile to map an object (see below) with 3 properties to those XML elements:
public class AdaptedModuleList {
private Module module1;
private Module module2;
private Module module3;
...// Accessors omitted
}What is required is a means to convert the unmappable object to a mappable one. This is done using a Converter:
import org.eclipse.persistence.mappings.DatabaseMapping;
import org.eclipse.persistence.mappings.converters.Converter;
import org.eclipse.persistence.sessions.Session;
public class ModuleListConverter implements Converter {
public void initialize(DatabaseMapping mapping, Session session) {}
public Object convertDataValueToObjectValue(Object dataValue, Session session) {
AdaptedModuleList adaptedModuleList = (AdaptedModuleList) dataValue;
if(null == adaptedModuleList) {
return null;
List<Module> moduleList = new ArrayList<Module>(3);
moduleList.add(adaptedModuleList.getModule1());
moduleList.add(adaptedModuleList.getModule2());
moduleList.add(adaptedModuleList.getModule3());
return moduleList;
public Object convertObjectValueToDataValue(Object objectValue, Session session) {
List<Module> moduleList = (List<Module>) objectValue;
if(null == moduleList) {
return null;
AdaptedModuleList adaptedModuleList = new AdaptedModuleList();
int moduleListSize = moduleList.size();
if(moduleListSize > 0) {
adaptedModuleList.setModule1(moduleList.get(0));
if(moduleListSize > 1) {
adaptedModuleList.setModule2(moduleList.get(1));
if(moduleListSize > 2) {
adaptedModuleList.setModule3(moduleList.get(2));
return adaptedModuleList;
public boolean isMutable() {
return true;
}The converter is added to the mapping metadata through the use of a Customizer:
import org.eclipse.persistence.config.DescriptorCustomizer;
import org.eclipse.persistence.descriptors.ClassDescriptor;
import org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping;
import org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping;
public class RootCustomizer implements DescriptorCustomizer {
public void customize(ClassDescriptor descriptor) throws Exception {
XMLCompositeCollectionMapping originalModuleMapping = (XMLCompositeCollectionMapping) descriptor.removeMappingForAttributeName("module");
XMLCompositeObjectMapping newModuleMapping = new XMLCompositeObjectMapping();
newModuleMapping.setAttributeName(originalModuleMapping.getAttributeName());
newModuleMapping.setXPath(".");
newModuleMapping.setReferenceClass(AdaptedModuleList.class);
newModuleMapping.setConverter(new ModuleListConverter());
descriptor.addMapping(newModuleMapping);
}Part 1/2 -
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,
Dileepfor 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 -
XML mapping to BusinessObjects
Currently we need to rebuild a middleware layer in our company.
The current implementation is a SOAP layer, implemented using SSB's, implemented in java with objects generated with Castor. These objects are mapped programmatic to specific Cobol-businessobjects (which are created with a specific Cobol-copybook to Java generator).
I'm searching for a way to perform the mapping between the Castor objects (or maybe, directly from the XML) to the Cobol-objects declarative. Is there anyone who knows a framework for this?
RikCurrently we need to rebuild a middleware layer in our company.
The current implementation is a SOAP layer, implemented using SSB's, implemented in java with objects generated with Castor. These objects are mapped programmatic to specific Cobol-businessobjects (which are created with a specific Cobol-copybook to Java generator).
I'm searching for a way to perform the mapping between the Castor objects (or maybe, directly from the XML) to the Cobol-objects declarative. Is there anyone who knows a framework for this?
Rik -
Hi,
We are working on SRM 4.0 EBP 5.0 CCM 2.0 implementation project and are in process to design the system to read data from external catalog.
The data is successfully read and mapped into OCI parameters if the data sent from external catalog is in HTML format. Now the problem is coming when the data is sent in XML format. I believe only by maintaining two parameters as 'xmltype' and 'xmlDocument' in the XML file coming back from web services (supplier's)the data can be mapped into OCI parameters. Can anyone please confirm this understanding. As before requesting suppliers for these changes I need to confirm from my end.
Is there any way provided by SAP by which we can test the XML data punch outs.
Thanking in advance.
Rahul.Rahul,
If you want to exchange catalog items with supplier web catalogs, they have to be OCI compliant, HTML or XML.
And then, they should use the newest ESAPO version, i.e. ESAPO3.5.
If this is not the case, you will have to map the XML file by yourself to get OCI structured data.
Look at OCI 4.0 specifications (service.sap.com/srm --> mySAP SRM in detail --> SRM 4.0 --> Strategic Purch & sourcing --> Catalog Management --> PDF fiel Open Catalog Interface 4.0 ):
The OCI can also process an XML file. Here the same architecture is used as in the pure HTML variant, this means the XML data is embedded in an HTML form for the transfer from the catalog to the SRM Server via the users browser.
To transfer an XML file, besides the fields mentioned in section 3.3, two further HTML-input fields are used:
xmltype:
This parameter specifies the type of the XML file used so that the correct XML mapping can be found. Up to and including SAP Enterprise Buyer 3.0 the mapping of the received XML data is done exclusively in the Business Connector which must be set up for this purpose for the relevant SAP Enterprise Buyer System.
As of SAP Enterprise Buyer 3.5 the mapping can also be done in the SRM Server itself. A prerequisite is that the corresponding XML schema is used. The previous schemas are also supported.
Valid values for the field type xmlType as of SRM 3.0 are:
Value
Description
DTD/Schema/Mapping
ESAPO
Encoded SAP Object for OCI Version up to and including3.0
PDI_OCI.dtd/PDI_OCI.xsd/BC
ESAPO3.0
Encoded SAP Object for OCI Version up to and including 3.0
PDI_OCI_30.dtd/PDI_OCI_30.xsd/BC
ESAPO3.5
Encoded SAP Object for OCI Version as of 3.5
OpenCatalogInterface.xsd/im SRM Server.
~xmlDocument:
In this parameter the XML file that must correspond to one of the schemas above is transferred as a Base64-coded character set. The coding can be done either directly on the server page of the catalog or, as shown in the sample application, by JavaScript on the clients page.
Rgds
Christophe -
ANN: Eclipse EJB 3.0 Object-Relational Mapping Project Requirements posted
A document that presents an intitial feature and use case list for the early milestones of the Eclipse EJB 3.0 Object/Relational Mapping project has been posted to the project newsgroup (news://news.eclipse.org/eclipse.technology.ejb-orm). It also demonstrates a set of user interface components for editing EJB 3.0 Entities. The document covers the basics and is designed to illustrate the concept. It is in no way comprehensive. For example, it doesn't thoroughly cover the editing of ORM xml descriptors although this is an important requirement for the project. ORM xml support will be detailed in coming revisions, and slated for future milestones.
The purpose of this document is to invite comment on the approach. If you are interested in EJB 3.0 Entity support in Eclipse please give the doc a look over and post your feedback to the EJB 3.0 Object-Relational Mapping Project newsgroup.
Newsgroup: news://news.eclipse.org/eclipse.technology.ejb-orm
Simple Web Interface http://www.eclipse.org/newsportal/thread.php?group=eclipse.technology.ejb-orm
--Shaun Smith
Project Overview:
The goal of this project is to add comprehensive support to the Eclipse Project for the definition and editing of Object-Relational (O/R) mappings for EJB 3.0 Entity Beans. EJB 3.0 O/R mapping support will focus on minimizing the complexity of mapping by providing creation and automated initial mapping wizards, and programming assistance such as dynamic problem identification. The implementation will be extensible so third party vendors can add to its functionality.
Project Proposal:
http://www.eclipse.org/proposals/eclipse-ejb30-orm/index.htmlA document that presents an intitial feature and use case list for the early milestones of the Eclipse EJB 3.0 Object/Relational Mapping project has been posted to the project newsgroup (news://news.eclipse.org/eclipse.technology.ejb-orm). It also demonstrates a set of user interface components for editing EJB 3.0 Entities. The document covers the basics and is designed to illustrate the concept. It is in no way comprehensive. For example, it doesn't thoroughly cover the editing of ORM xml descriptors although this is an important requirement for the project. ORM xml support will be detailed in coming revisions, and slated for future milestones.
The purpose of this document is to invite comment on the approach. If you are interested in EJB 3.0 Entity support in Eclipse please give the doc a look over and post your feedback to the EJB 3.0 Object-Relational Mapping Project newsgroup.
Newsgroup: news://news.eclipse.org/eclipse.technology.ejb-orm
Simple Web Interface http://www.eclipse.org/newsportal/thread.php?group=eclipse.technology.ejb-orm
--Shaun Smith
Project Overview:
The goal of this project is to add comprehensive support to the Eclipse Project for the definition and editing of Object-Relational (O/R) mappings for EJB 3.0 Entity Beans. EJB 3.0 O/R mapping support will focus on minimizing the complexity of mapping by providing creation and automated initial mapping wizards, and programming assistance such as dynamic problem identification. The implementation will be extensible so third party vendors can add to its functionality.
Project Proposal:
http://www.eclipse.org/proposals/eclipse-ejb30-orm/index.html -
Hi Java Team
For a calling a servlet from a HTML form that is placed inside a folder name HTML in the webcontent we need to map the welcome file as
<welcome-file>HTML\Home.html</welcome-file>
In my application I am reading an Excel file to update database
but when i am creating the input stream object i am currently giving the entire path like
FileInputStream f = new FileInputStream("E://sample1/sample1/WebContent/Files/Book10.xls")
is there any mapping which we can do in web.xml by which i need to give only the file name like
FileInputStream f = new FileInputStream ("Book10.xls")
Thanks
SanthoshHi Mark,
I don't think it is possible to nest the XML mapping.
This is because your table data will be just two-dimentional. Through your table return several keywords for each template, the query result will look something like:
template_key id ver keyword
tkey1 INSTLP0001a 1.2 key 1 v1.2
tkey1 INSTLP0001a 1.2 key 2 v1.2
tkey1 INSTLP0001a 1.2 key 3 v1.2
Look at the above exhibit. all the column except keyword are repeated.
So, you can achieve this in two ways.
1. Change your schema to have a one level data mapping.
2. Split your schema into three so that you will have three xml files.
Hope this may help you!
Nith -
Enhydra DODS - Open Source Object/Relational Mapping Tool from Enhydra
Hi all,
I just want to inform you that the final version 5.1 of DODS is released.
Data Object Design Studio is an open source Object/Relational mapping tool.
Based on XML data model descriptions (DOML files) SQL DDL, sophisticated Java O/R code and documentation (HTML, pdf, XMI) is generated automatically using a generator GUI, by Ant tasks or from within your IDE of choice (using Kelp).
The generated Java code provides a lot of possibilities for runtime optimization (DO LRU caching, Query LRU caching, cache initialization, lazyloading,...).
DODS can be used with or without the Enhydra application server.
DODS Development Team
Home page http://dods.enhydra.org
Objectweb project http://forge.objectweb.org/projects/dods
Download page http://forge.objectweb.org/project/showfiles.php?group_id=61Hi Davide,
SAP doesn't have proprietary O/R tool but it supports JDO 1.0 standard and Entity Beans as part of J2EE 1.3.
Regards,
Avi -
How can I make Xml mapping a little easier
Hello,
I am using Xcelsius for a project that is constantly being deployed to different environments. When deploying to different environments I find myself constantly having to go back and do the following:
1. Change my xml map in my excel document
2. Re-import the excel file into xcelsius
3. Re-publish my swf.
My main question is whether I need to do all this when my xml doc has changed physical locations. Is there a way I can make this a little more dynamic?
ThxAn idea is to put the address/path into a cell.
The cell will have several objects accessing it:
1) The <Connection> will "know" which file to load from where (rather than a hard coded path)
2) A <text input> object via which you may edit the cell and thereby re-defining the data source location for the connection
One little caveat: whenever you load the swf file the "cell" will hold the pre-determined/hard-coded path value and you will have to edit it before you can get going. You may try circumvent that by using a <Scenario> button and thereby storing the path name. As long as you don't re-export your xlf the scenario values will be there for you. That will save you some typing. At the end of all that, you will be able to control the source location from within the dashboard albeit not entirely "automatic", but definitely without "rebuilding" the swf file.
Hope this helps -
Xcelsius Dashboard on SAP R/3 Table using BSP and XML Mapping
Hi Experts,
I have developed a simple dashboard on small data set (10 records) that I am fetching from a R/3 Table into BSP and generating XML from there and consuming it in Xcelsius (SAP R/3 + BSP + XML Mapping).
Now I want to fetch data based on Variables values that should be passed from the dashboard at the runtime and should display the data accordingly. Any help on how it can be achieved?
Thanks..!!
SharadHi,
You could try doing this by using XML data connection. You would have to make use of Enable load to get the data from XML and Enable send to send data back to XML from dashboard.
This would require you to write a script.
Thanks,
Amit -
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,
MarkThank 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..... -
Question about XML mapping to ABAP internal table
Hi experts.
I'm trying to XML mapping. But it doesn't work well. Assume there are XML file as below.
<HEADER>
<ITEM>
<FOO>123</FOO>
<BAR>ABC</BAR>
</ITEM>
<ITEM>
<FOO>456</FOO>
<BAR>DEF</BAR>
</ITEM>
<HEADER>
and I want to trasformation it as below.
ITAB
FOO | BAR
123 | ABC
456 | DEF
How could I trasformation using "call transformation"?
Regards.Hi,
REPORT zind_xml_to_sap NO STANDARD PAGE HEADING.
Data Declaration *
DATA: client TYPE REF TO if_http_client, "Interface
host TYPE string,
port TYPE string,
proxy_host TYPE string,
proxy_port TYPE string,
path TYPE string,
scheme TYPE i,
xml TYPE xstring,
response TYPE string.
DATA: t_xml TYPE smum_xmltb OCCURS 0 WITH HEADER LINE. "XML Table structure used
"for retreive and output XML doc
DATA: g_stream_factory TYPE REF TO if_ixml_stream_factory. "Interface
DATA : return LIKE bapiret2 OCCURS 0 WITH HEADER LINE. "XML Table structure used for retreive
"and output XML doc
Parameters *
PARAMETER : p_add TYPE string LOWER CASE ,
p_dfile LIKE rlgrap-filename.
AT Selection-Screen on value-request for file *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dfile.
Get file
PERFORM 100_get_file.
Start-of-Selection *
START-OF-SELECTION.
Perform to upload xml data from URL to SAP internal table
PERFORM 200_xml_upload.
IF t_xml[] IS NOT INITIAL.
Perform to Download data from Internal Table to a text file in local drive
PERFORM 300_download.
write : / 'Data Uploaded to Internal Table Successfully'.
write : / 'XML Data Downloaded to Local path', p_dfile.
else.
write : / 'No Data for upload'.
ENDIF.
*if t_xml[] is INITIAL.
WRITE : address, 'Given URl cannot be Converted' .
else.
LOOP AT t_xml .
WRITE: t_xml-cname, t_xml-cvalue.
ENDLOOP.
endif.
*& Form get_file
Get File
FORM 100_get_file .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
IMPORTING
file_name = p_dfile
ENDFORM. " 100_get_file
*& Form 200_xml_upload
form to upload xml data from URL to SAP internal table
FORM 200_xml_upload .
*Check HTTP:// and concatenate
IF p_add NS 'http://' OR p_add NS 'HTTP://'.
CONCATENATE 'http://' p_add
INTO p_add.
ENDIF.
Fetching the address of the URL
CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = p_add
IMPORTING
client = client.
*Structure of HTTP Connection and Dispatch of Data
client->send( ).
*Receipt of HTTP Response
CALL METHOD client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
IF sy-subrc = 1.
MESSAGE 'HTTP COMMUNICATION FAILURE' TYPE 'I' DISPLAY LIKE 'E'.
EXIT.
ELSEIF sy-subrc = 2.
MESSAGE 'HTTP INVALID STATE' TYPE 'I' DISPLAY LIKE 'E'.
EXIT.
ELSEIF sy-subrc = 3.
MESSAGE 'HTTP PROCESSING FAILED' TYPE 'I' DISPLAY LIKE 'E'.
EXIT.
ELSE.
MESSAGE 'Problem in HTTP Request' TYPE 'I' DISPLAY LIKE 'E'.
EXIT.
ENDIF.
ENDIF.
Get data of the xml to Response
response = client->response->get_cdata( ).
*FM converting the XML format to abap
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = response
IMPORTING
buffer = xml.
*FM converting XMl to readable format to a internal table.
CALL FUNCTION 'SMUM_XML_PARSE'
EXPORTING
xml_input = xml
TABLES
xml_table = t_xml
return = return.
ENDFORM. " 200_xml_upload
*& Form 300_download
*form to Download data from Internal Table to a text file in local drive
FORM 300_download .
DATA filename TYPE string.
filename = p_dfile.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = filename
WRITE_FIELD_SEPARATOR = 'X'
TABLES
data_tab = t_xml
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. -
Oracle XML to HSBC XML mapping for R12 AP Check Printing
Hi,
Our environment is Oracle APPS R12.
We need to send an electronic payment information to HSBC bank. So this will be generated 'like' a check from the payments process, but for payment types of WIRE, ACH, etc...and the output is an XML file in a format specified by the bank HSBC. We need to send an XML file to HSBC per their spec. The data that needs to go in this file is the same payment information that Oracle already provides in the standard check printing. We need to take that data and turn it into XML matching the HSBC spec (hence the XML to XML mapping).
I am not sure how to get the source for standard check printing prog. Any idea of how to do Oracle XML- HSBC XML Mapping? Any help is really appreciated.
Thanks
ValliReview this note, you will get source of check printing program
R12: Master Troubleshooting Guide for Oracle Payables Check Printing issues (Doc ID 1353280.1)
thanks -
Need help in Object-Relational Mapping
I'm writing a simple two-tiered business application with Swing application on the client side and a DBMS on the server side. To make my client code more maintainable, I decided to create Business Objects instead of having my client accessing the database directly via SQL. For simplicity, I'm not using any features from the J2EE framework, and the Business Objects will be hosted on the client side, with one-to-one mapping to tables in the database. Since this is my first attempt in Object-Relational Mapping, I'm faced with the following problems:
1. What kind of methods are appropriate for business objects? For example, if I have a Machine and Employee entity. A Machine is owned by an employee, and this is represented in the DB by storing the employee ID (not the name) as a foreign key in the Machine table. Let's say in the user interface I have a table that needs to display the list of Machines, but instead of displaying the owner employee's ID, I want to display the owner employee's name by doing a join select. Should the findMachines() method always perform a join select to get owner's name and store it in the Machine object which is returned, or should findMachines() simply return the owner's ID so the UI will need to make another SQL call (through the Employee object) to get the employee's name? The latter is more elegant, but would it be horribly inefficient if there are lots of machines to be displayed (and for each machine we make a separate select call to get the owner's name).Business objects should be separate from how they're persisted.
When you say object-relational mapping, do you mean a tool like Hibernate? Or are you writing your own persistence layer using JDBC and SQL?
I'd recommend that you read about the Data Access Object pattern and keep the persistence code out of the business objects themselves:
http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
url=http://www-106.ibm.com/developerworks/java/library/j-dao/ -
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...
Maybe you are looking for
-
Sharing iTunes library between two accounts on a single iMac
My wife and I are using the same iMac but through 2 separate accounts, which is quite neat to separate files, preferences, etc. We have 'ripped' our home CD collection into the iTunes library of my account, and I am now looking for a way for my wife
-
My laptop (HP Pavilion g6-1343sa Notebook) doesn't work properly and hasn't done since the first day I used it. The cursor can be very erratic, flickering around the screen when I'm not even touching the touch pad. Sometimes when I am using the touch
-
a not very serious but annoying little problem i have here.. all other websites display fine, but when i do a google search using the bar in safari i get it all back in some foriegn language. going to google.com and doing the same search it's all in
-
Hi, Quite simply, I'm having a bit of bother playing/streaming films without downloading. Is this a problem with my (seemingly fully-functional) wifi, or something with iTunes itself? Thanks, D.
-
Deleting paragraph tags that are in use is allowed in FM 9!
Has anyone besides me noticed that FM 9 allows you delete a paragraph tag in a document even though the paragraph tag is in use? I've found that the result of deleting the tag is that text with that tag is unaffected and even still has the deleted ta