dcsimg
XMLEncoder/XMLDecoder and JavaBean hashCode
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, January 17, 2003 04:39 AM

I export/import a JavaBean with several nested JavaBeans using XMLEncoder and XMLDecoder. public class Bean1 { private Bean2[] bean2 // public getters and setters } I'm developing a visual editor and I want to recover each bean2 location as it was at first. Does hashCode() return the same value after and before I export my bean? (i think not :( ) How can I recover the bean position without adding "x" and "y" propertes to each bean? Thank you in advance, G.    More>>

I export/import a JavaBean with several nested JavaBeans using XMLEncoder and XMLDecoder.

			
public class Bean1 {
private Bean2[] bean2
// public getters and setters
}



I'm developing a visual editor and I want to recover each bean2 location as it was at first.


Does hashCode() return the same value after and before I export my bean? (i think not :( )

How can I recover the bean position without adding "x" and "y" propertes to each bean?



Thank you in advance,

G.

   <<Less
About | Sitemap | Contact