Click here to Skip to main content
15,891,828 members
Articles / Containers / Virtual Machine

.NET/Java Interoperability using Service Interface and DTO Architecture Patterns

Rate me:
Please Sign up or sign in to vote.
4.73/5 (8 votes)
7 Feb 2011CPOL5 min read 49.6K   234   15  
This article shows you how to build a simple cross-platform interoperation solution between .NET and Java using the Service Interface and Data Transfer Object (DTO) architecture patterns
//Auto generated code
//Code generated by XXsd2Code<http://xxsd2code.sourceforge.net/> XXsd2Code.exe version 1.0.0
//For any comments/suggestions contact code generator author at asheesh.goja@gmail.com
//Auto generated code
 
package CustomerOrderAndFulfillment.CommonSchemaElements;
 
 
public	class	OrderItem implements Cloneable
{
	public	String	title;
	public	String	note;
	public	int	quantity;
	public	double	price;
			
	//default constructor
	public	OrderItem()
	{
		title = "";
		note = "";
		quantity = 0 ;
		price = 0.0 ;
	}
			
	//Clonable Override
	@Override  public	OrderItem clone()	throws CloneNotSupportedException
	{
		OrderItem	 instance = new OrderItem() ;
		instance.title = title ;
		instance.note = note ;
		instance.quantity = quantity ;
		instance.price = price ;
		return instance;
	}
			
	//DeepCopy
	public	void DeepCopy(OrderItem rhs)
	{
		title = rhs.title ;
		note = rhs.note ;
		quantity = rhs.quantity ;
		price = rhs.price ;
	}
			
}


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Cisco
United States United States
I work as a senior solutions software architect at Cisco.

Here is my work.

Comments and Discussions