I was reading this:

http://www.onjava.com/pub/a/onjava/2005/02/02/sqlmaps.html

I thought it was a pretty good way to separate out the SLQ and mappings.

I was wondering if anyone had implemented something like that in Perl. What would be considered O/R in the house of Perl?

Here are 10 reasons they give for Java using SQLMaps:

10  Works with any database that has a JDBC driver (no plugins required)
9   Configurable caching (including dependencies)
8   Local and Global transaction support and management
7   Simple XML mapping document structure
6   Supports Map, Collection, List and Primitive Wrappers
5   Supports JavaBeans classes (get/set methods)
4   Supports complex object mappings (populating lists, complex object models etc.)
3   Object models are never perfect (no changes required!)
2   Database designs are never perfect (no changes required!)
1   You already know SQL, why waste time learning something else?

Of course, some of those are Java specific, but I like the idea behind it.

Thoughts and opinions welcome!

Edit by castaway - linkified link


In reply to SQLMaps by sigzero

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.