We might add this feature just to make you happy ;)
Peter Knego
2. i guess this response is for caching. i can live without it ;-)
On Jan 6, 2:38 pm, Peter Knego <pe...@knego.net> wrote:
> There are two obstacles to implementing this:
>
> 1. XML data comes as stream of bytes (or chars) and there is no random
> access to elements as there is with databases. Lazy parsing would therefore
> have to parse the whole stream every time an access to a new element would
> be made. This would negatively affect performance and would negate the whole
> purpose of lazy loading.
> 2. The produced objects would have to be either proxied or their bytecode
> would have to be enhanced. This are techniques currently employed by ORM
> tools to support lazy-loading (and write-on-change). Both of this techniques
> have drawbacks and produce a new set of problems.
>
> Given this, there is no plan to support this feature in Xmappr.
>
> Peter
>
On Jan 6, 5:52 pm, Peter Knego <pe...@knego.net> wrote:
> This can be solved by mapping numeric data to field of type String and
> perform conversion in getter/setter. So conversion would only be done when
> data is accessed by client.
>
> Can you give me an example XML and class to map to?
>
> Also remember that premature optimization is evil ;) First test Xmappr with
> some real data and then assess if it's fast enough and if optimization is
> needed.
>
> Peter
>