Re: mkorm helper project

Abel Birya <[email protected]> Sun, 26 Dec 2010 20:41:34 +0300
Newsgroups gmane.comp.java.orm.simpleorm
Message-ID <[email protected]>
Hello Frank. Thanks for sharing. I will have a look at the code and
try it out and let you know how I fare in the coming days. Enjoy the
holidays. Kind regards. Abel

On 12/20/10, Franck Routier <[email protected]> wrote:
> Hi,
>
> I have just released some code whose objective is to facilitate the use
> of Simpleorm within a project that uses Springframework.
>
> It provides Spring integration in the same way as Hibernate, ibatis,
> toplink, jdo or even jdbc in Spring.
> See http://static.springsource.org/spring/docs/2.0.x/reference/orm.html
>
> Mainly, mkorm will provide a SormTemplate, that have a few methods, and
> mainly one that says :
>
> sormTemplate.execute(SormCallback callback)
>
> The SormTemplate will take care of creating a session, beginning the
> session, committing and closing the session.
>
> The callback object will implement a single method :
>
> doInSession(SSessionJdbc ses)
>
> For example :
>
> doInSession(SSessionJdbc ses) {
>   ses.findOrCreate(mymeta, "key");
>   ses.flush();
> }
>
> Benefits of the approach are :
> - integrates with Spring (especially with spring transaction managament)
> - less copy and paste code for session management in you data access
> layer
> - will translate exceptions into Spring DataAccessExceptions hierarchy
> (especially will try to translate JdbcException into meaningful
> exceptions). Notice that DataCcessException are runtime, just as in
> Simpleorm...
> - a special DataValidationException is provided, that can refer to
> SFieldMetas (for UI integration) and carry a rescue dataset (for UI
> recovery in case of exception in the DAO layer)
>
> The project sources and a jar can be found here :
>
> https://launchpad.net/mkorm
>
> For now, the project is mostly untested, but I'm working on integrating
> it in my main project, so I will test it in the next days. Javadocs
> should be ok, but there is almost no other doc for now (only one
> overview blueprint in Launchpad).
>
> Any comments are welcome !
>
> Franck
>
>
>


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/SimpleORM/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/SimpleORM/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/