You may have already discounted Java versions, but just in case  ... 
http://www.javacodegeeks.com/2013/10/java-object-to-object-mapper.html

Craig

On Monday, July 13, 2015 at 3:53:19 AM UTC+10, Jules wrote:
>
> Guys,
>
> I have an external and an internal data representation.
>
> I need to define transforms both ways.
>
> Both models are structured.
>
> A pair of in/out functions might look like:
>
> (fn [{{b :b c c:} :a}] [b [c]])
>
> (fn [[b [c]] {:a {:b b :c c}})
>
> I just typed that OTTOMH so please forgive any mistakes.
>
> I have about 50 of these to define and maintain and I may have further 
> representations to map to in the future.
>
> My question - Is there a library that will allow me to define the 
> relationship between the two representations declaratively and then 
> generate the transform functions from that single src.
>
> Ideally it would allow me to extend it to construct/destructure e.g. 
> joda-time class instances etc as some of my internal rep uses these.
>
> It feels a bit like unification in PROLOG...
>
> Looking forward to hearing your ideas.
>
> regards,
>
>
> Jules
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to