this is for custom tool woth mappings.
in my application i send data to other applications in the form of POJO. all other application represents the same data with different name and so while sending i need to copy data into appropriate attribute in the POJO. to achieve this i use a mapping file which contains the attribute name in my module and the corresponding attribute name in the other application. while sending data i get data from table and iterates through each attribute. for each attribute i get the corresponding name from xml mapping and set the value using reflection. this approach is working fine. but every time if attribute name modified in any of the application (or new attributes added), i have manually change the xml file. this approach leads to some small mistakes; some times it irritates to find the where the problem is.
i think using XDocklet we can maintain the mapping in POJO itself and generate the mapping based on the POJO. this soultion would clean and helps lot to maintain as well.
it would great if some one gives me the solution how to generate the xml mapping based on the java bean.
thanks in advance.
On 7/12/06, Andrew Stevens <[EMAIL PROTECTED]> wrote:
On Sun, 2006-07-02 at 16:15, M Lokeswara Reddy wrote:
> Hi,
> I am using xml mapping to map the value object attribute to column
> name in the table.
Is this with Hibernate, Castor, JDO, EJBs, your own tool with a custom
mapping file format, or what?
> since the number of value objects and the attributes in each value
> object is very high i am finding difficulty to maintain xml file for
> every modifications. i hope there is a solution to generate the custom
> xml using XDocklet.
> please help me on how to generate xml. it would great if exmplained
> with example.
Well, that's the sort of thing it's designed for. I can't be any more
specific without knowing what you want to use it with. There are
various subtasks that can handle the above mentioned persistence methods
(and more), but the javadoc tags and Ant script that are needed will
vary according to what you're using it with.
This query would be more appropriate to the xdoclet-user list, however,
as it's related to using XDoclet in your own development. This list is
intended more for discussion on developing XDoclet itself.
Regards,
Andrew.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel