This page is no longer maintained — Please continue to the home page at www.scala-lang.org

which ORM to use?

14 replies
Gilberto Garcia
Joined: 2010-08-30,
User offline. Last seen 42 years 45 weeks ago.

Hi guys,

I'm new to Scala and finding out which ORM solution to use is being
really painfully task.

Basically we have, in one hand, all ORM frameworks developed for java
and using them make me fell a little bit uncomfortable, I mean, I'm
learning Scala 'cause I want a different solution from the ones
offered by the java world, so, why the heck should I continuing using
all those java ORM frameworks and continuing making things in the java
way?

What's the issue here? Is the lack of Scala "native" solution due to
the fact that it's a new whole world that didn't have the time to
build it's own solution? Or, the idea, from the beginning, is to use
java's ORM solutions?

So, whats the best aproach here?
what is the best ORM framework to use with Scala (Hibernate? EBean?, etc, etc)

Thanks in advance
Giba

Christopher Sch...
Joined: 2010-08-30,
User offline. Last seen 42 years 45 weeks ago.
Re: which ORM to use?
There are great ORM solutions for Scala. They provide a very "Scala like" implementation.
Check out:Scala Query: http://wiki.github.com/szeiger/scala-query/getting-started Squeryl: http://squeryl.org/inserts-updates-delete.htmlCircumflex ORM: http://circumflex.ru/index.html#orm
While doing a bachelor thesis, we are currently investigating the pros and cons of this approaches.
On Mon, Aug 30, 2010 at 9:27 PM, Gilberto Garcia <giba.dmb@gmail.com> wrote:
Hi guys,

I'm new to Scala and finding out which ORM solution to use is being
really painfully task.

Basically we have, in one hand, all ORM frameworks developed for java
and using them make me fell a little bit uncomfortable, I mean, I'm
learning Scala 'cause I want a different solution from the ones
offered by the java world, so, why the heck should I continuing using
all those java ORM frameworks and continuing making things in the java
way?

What's the issue here? Is the lack of Scala "native" solution due to
the fact that it's a new whole world that didn't have the time to
build it's own solution? Or, the idea, from the beginning, is to use
java's ORM solutions?

So, whats the best aproach here?
what is the best ORM framework to use with Scala (Hibernate? EBean?, etc, etc)

Thanks in advance
Giba



--
Christophertwitter: @fakodblog: http://blog.fakod.eu
Kevin Wright 2
Joined: 2010-05-30,
User offline. Last seen 26 weeks 4 days ago.
Re: which ORM to use?
Squeryl!
It's native...

On 30 August 2010 20:27, Gilberto Garcia <giba.dmb@gmail.com> wrote:
Hi guys,

I'm new to Scala and finding out which ORM solution to use is being
really painfully task.

Basically we have, in one hand, all ORM frameworks developed for java
and using them make me fell a little bit uncomfortable, I mean, I'm
learning Scala 'cause I want a different solution from the ones
offered by the java world, so, why the heck should I continuing using
all those java ORM frameworks and continuing making things in the java
way?

What's the issue here? Is the lack of Scala "native" solution due to
the fact that it's a new whole world that didn't have the time to
build it's own solution? Or, the idea, from the beginning, is to use
java's ORM solutions?

So, whats the best aproach here?
what is the best ORM framework to use with Scala (Hibernate? EBean?, etc, etc)

Thanks in advance
Giba



--
Kevin Wright

mail/google talk: kev.lee.wright@gmail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda

Gilberto Garcia
Joined: 2010-08-30,
User offline. Last seen 42 years 45 weeks ago.
Re: which ORM to use?

Thanks guys,

I'll check them out.

On Mon, Aug 30, 2010 at 4:40 PM, Christopher Schmidt
wrote:
> There are great ORM solutions for Scala. They provide a very "Scala like"
> implementation.
> Check out:
> Scala Query: http://wiki.github.com/szeiger/scala-query/getting-started
> Squeryl: http://squeryl.org/inserts-updates-delete.html
> Circumflex ORM: http://circumflex.ru/index.html#orm
> While doing a bachelor thesis, we are currently investigating the pros and
> cons of this approaches.
> On Mon, Aug 30, 2010 at 9:27 PM, Gilberto Garcia wrote:
>>
>> Hi guys,
>>
>> I'm new to Scala and finding out which ORM solution to use is being
>> really painfully task.
>>
>> Basically we have, in one hand, all ORM frameworks developed for java
>> and using them make me fell a little bit uncomfortable, I mean, I'm
>> learning Scala 'cause I want a different solution from the ones
>> offered by the java world, so, why the heck should I continuing using
>> all those java ORM frameworks and continuing making things in the java
>> way?
>>
>> What's the issue here? Is the lack of Scala "native" solution due to
>> the fact that it's a new whole world that didn't have the time to
>> build it's own solution? Or, the idea, from the beginning, is to use
>> java's ORM solutions?
>>
>> So, whats the best aproach here?
>> what is the best ORM framework to use with Scala (Hibernate? EBean?, etc,
>> etc)
>>
>> Thanks in advance
>> Giba
>
>
>
> --
> Christopher
> twitter: @fakod
> blog: http://blog.fakod.eu
>

Tim Perrett 2
Joined: 2009-04-06,
User offline. Last seen 42 years 45 weeks ago.
Re: which ORM to use?

+1

Squeryl is awesome.

On 30 August 2010 20:40, Kevin Wright wrote:
> Squeryl!
> It's native...
>
> On 30 August 2010 20:27, Gilberto Garcia wrote:
>>
>> Hi guys,
>>
>> I'm new to Scala and finding out which ORM solution to use is being
>> really painfully task.
>>
>> Basically we have, in one hand, all ORM frameworks developed for java
>> and using them make me fell a little bit uncomfortable, I mean, I'm
>> learning Scala 'cause I want a different solution from the ones
>> offered by the java world, so, why the heck should I continuing using
>> all those java ORM frameworks and continuing making things in the java
>> way?
>>
>> What's the issue here? Is the lack of Scala "native" solution due to
>> the fact that it's a new whole world that didn't have the time to
>> build it's own solution? Or, the idea, from the beginning, is to use
>> java's ORM solutions?
>>
>> So, whats the best aproach here?
>> what is the best ORM framework to use with Scala (Hibernate? EBean?, etc,
>> etc)
>>
>> Thanks in advance
>> Giba
>
>
>
> --
> Kevin Wright
>
> mail/google talk: kev.lee.wright@gmail.com
> wave: kev.lee.wright@googlewave.com
> skype: kev.lee.wright
> twitter: @thecoda
>
>

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: which ORM to use?
Don't forget Lift's Mapper and Record.

On Mon, Aug 30, 2010 at 3:40 PM, Christopher Schmidt <fakod666@googlemail.com> wrote:
There are great ORM solutions for Scala. They provide a very "Scala like" implementation.
Check out:Scala Query: http://wiki.github.com/szeiger/scala-query/getting-started Squeryl: http://squeryl.org/inserts-updates-delete.htmlCircumflex ORM: http://circumflex.ru/index.html#orm
While doing a bachelor thesis, we are currently investigating the pros and cons of this approaches.
On Mon, Aug 30, 2010 at 9:27 PM, Gilberto Garcia <giba.dmb@gmail.com> wrote:
Hi guys,

I'm new to Scala and finding out which ORM solution to use is being
really painfully task.

Basically we have, in one hand, all ORM frameworks developed for java
and using them make me fell a little bit uncomfortable, I mean, I'm
learning Scala 'cause I want a different solution from the ones
offered by the java world, so, why the heck should I continuing using
all those java ORM frameworks and continuing making things in the java
way?

What's the issue here? Is the lack of Scala "native" solution due to
the fact that it's a new whole world that didn't have the time to
build it's own solution? Or, the idea, from the beginning, is to use
java's ORM solutions?

So, whats the best aproach here?
what is the best ORM framework to use with Scala (Hibernate? EBean?, etc, etc)

Thanks in advance
Giba



--
Christophertwitter: @fakodblog: http://blog.fakod.eu

Michael Swierczek
Joined: 2009-07-01,
User offline. Last seen 42 years 45 weeks ago.
Re: which ORM to use?

On Mon, Aug 30, 2010 at 8:57 PM, Naftoli Gugenheim wrote:
> Don't forget Lift's Mapper and Record.

http://groups.google.com/group/liftweb/msg/0ca6b2e5e39facc7

While the Lift developers intend to support Mapper for a long time
going forward, their plan is to replace it with Record. With that in
mind, Mapper would not be my first choice as a Scala ORM.

-Mike

>
> On Mon, Aug 30, 2010 at 3:40 PM, Christopher Schmidt
> wrote:
>>
>> There are great ORM solutions for Scala. They provide a very "Scala like"
>> implementation.
>> Check out:
>> Scala Query: http://wiki.github.com/szeiger/scala-query/getting-started
>> Squeryl: http://squeryl.org/inserts-updates-delete.html
>> Circumflex ORM: http://circumflex.ru/index.html#orm
>> While doing a bachelor thesis, we are currently investigating the pros and
>> cons of this approaches.
>> On Mon, Aug 30, 2010 at 9:27 PM, Gilberto Garcia
>> wrote:
>>>
>>> Hi guys,
>>>
>>> I'm new to Scala and finding out which ORM solution to use is being
>>> really painfully task.
>>>
>>> Basically we have, in one hand, all ORM frameworks developed for java
>>> and using them make me fell a little bit uncomfortable, I mean, I'm
>>> learning Scala 'cause I want a different solution from the ones
>>> offered by the java world, so, why the heck should I continuing using
>>> all those java ORM frameworks and continuing making things in the java
>>> way?
>>>
>>> What's the issue here? Is the lack of Scala "native" solution due to
>>> the fact that it's a new whole world that didn't have the time to
>>> build it's own solution? Or, the idea, from the beginning, is to use
>>> java's ORM solutions?
>>>
>>> So, whats the best aproach here?
>>> what is the best ORM framework to use with Scala (Hibernate? EBean?, etc,
>>> etc)
>>>
>>> Thanks in advance
>>> Giba
>>
>>
>>
>> --
>> Christopher
>> twitter: @fakod
>> blog: http://blog.fakod.eu
>
>

David Pollak
Joined: 2008-12-16,
User offline. Last seen 42 years 45 weeks ago.
Re: which ORM to use?


On Mon, Aug 30, 2010 at 7:22 PM, Michael Swierczek <mike.swierczek@gmail.com> wrote:
On Mon, Aug 30, 2010 at 8:57 PM, Naftoli Gugenheim <naftoligug@gmail.com> wrote:
> Don't forget Lift's Mapper and Record.

http://groups.google.com/group/liftweb/msg/0ca6b2e5e39facc7

While the Lift developers intend to support Mapper for a long time
going forward, their plan is to replace it with Record.  With that in
mind, Mapper would not be my first choice as a Scala ORM.

Officially, The Lift team will continue to support and enhance Mapper for as long as I'm involved with Lift, and given that I'm 46 and the Benevolent Dictator for Life, I'm hoping that Mapper will be supported for at least 30-40 years.   

-Mike


>
> On Mon, Aug 30, 2010 at 3:40 PM, Christopher Schmidt
> <fakod666@googlemail.com> wrote:
>>
>> There are great ORM solutions for Scala. They provide a very "Scala like"
>> implementation.
>> Check out:
>> Scala Query: http://wiki.github.com/szeiger/scala-query/getting-started
>> Squeryl: http://squeryl.org/inserts-updates-delete.html
>> Circumflex ORM: http://circumflex.ru/index.html#orm
>> While doing a bachelor thesis, we are currently investigating the pros and
>> cons of this approaches.
>> On Mon, Aug 30, 2010 at 9:27 PM, Gilberto Garcia <giba.dmb@gmail.com>
>> wrote:
>>>
>>> Hi guys,
>>>
>>> I'm new to Scala and finding out which ORM solution to use is being
>>> really painfully task.
>>>
>>> Basically we have, in one hand, all ORM frameworks developed for java
>>> and using them make me fell a little bit uncomfortable, I mean, I'm
>>> learning Scala 'cause I want a different solution from the ones
>>> offered by the java world, so, why the heck should I continuing using
>>> all those java ORM frameworks and continuing making things in the java
>>> way?
>>>
>>> What's the issue here? Is the lack of Scala "native" solution due to
>>> the fact that it's a new whole world that didn't have the time to
>>> build it's own solution? Or, the idea, from the beginning, is to use
>>> java's ORM solutions?
>>>
>>> So, whats the best aproach here?
>>> what is the best ORM framework to use with Scala (Hibernate? EBean?, etc,
>>> etc)
>>>
>>> Thanks in advance
>>> Giba
>>
>>
>>
>> --
>> Christopher
>> twitter: @fakod
>> blog: http://blog.fakod.eu
>
>



--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im
Surf the harmonics
Michael Swierczek
Joined: 2009-07-01,
User offline. Last seen 42 years 45 weeks ago.
Re: which ORM to use?

I apologize then for spreading misinformation. I had interpreted some
of the posts on the Lift mailing list to mean that Mapper would be
supported for a long time but was unofficially deprecated.

-Mike

On Mon, Aug 30, 2010 at 10:03 PM, David Pollak
wrote:
>
>
> On Mon, Aug 30, 2010 at 7:22 PM, Michael Swierczek
> wrote:
>>
>> On Mon, Aug 30, 2010 at 8:57 PM, Naftoli Gugenheim
>> wrote:
>> > Don't forget Lift's Mapper and Record.
>>
>> http://groups.google.com/group/liftweb/msg/0ca6b2e5e39facc7
>>
>> While the Lift developers intend to support Mapper for a long time
>> going forward, their plan is to replace it with Record.  With that in
>> mind, Mapper would not be my first choice as a Scala ORM.
>
> Officially, The Lift team will continue to support and enhance Mapper for as
> long as I'm involved with Lift, and given that I'm 46 and the
> Benevolent Dictator for Life, I'm hoping that Mapper will be supported for
> at least 30-40 years.
>
>>
>> -Mike
>>
>>
>> >
>> > On Mon, Aug 30, 2010 at 3:40 PM, Christopher Schmidt
>> > wrote:
>> >>
>> >> There are great ORM solutions for Scala. They provide a very "Scala
>> >> like"
>> >> implementation.
>> >> Check out:
>> >> Scala Query: http://wiki.github.com/szeiger/scala-query/getting-started
>> >> Squeryl: http://squeryl.org/inserts-updates-delete.html
>> >> Circumflex ORM: http://circumflex.ru/index.html#orm
>> >> While doing a bachelor thesis, we are currently investigating the pros
>> >> and
>> >> cons of this approaches.
>> >> On Mon, Aug 30, 2010 at 9:27 PM, Gilberto Garcia
>> >> wrote:
>> >>>
>> >>> Hi guys,
>> >>>
>> >>> I'm new to Scala and finding out which ORM solution to use is being
>> >>> really painfully task.
>> >>>
>> >>> Basically we have, in one hand, all ORM frameworks developed for java
>> >>> and using them make me fell a little bit uncomfortable, I mean, I'm
>> >>> learning Scala 'cause I want a different solution from the ones
>> >>> offered by the java world, so, why the heck should I continuing using
>> >>> all those java ORM frameworks and continuing making things in the java
>> >>> way?
>> >>>
>> >>> What's the issue here? Is the lack of Scala "native" solution due to
>> >>> the fact that it's a new whole world that didn't have the time to
>> >>> build it's own solution? Or, the idea, from the beginning, is to use
>> >>> java's ORM solutions?
>> >>>
>> >>> So, whats the best aproach here?
>> >>> what is the best ORM framework to use with Scala (Hibernate? EBean?,
>> >>> etc,
>> >>> etc)
>> >>>
>> >>> Thanks in advance
>> >>> Giba
>> >>
>> >>
>> >>
>> >> --
>> >> Christopher
>> >> twitter: @fakod
>> >> blog: http://blog.fakod.eu
>> >
>> >
>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Blog: http://goodstuff.im
> Surf the harmonics
>

nilskp
Joined: 2009-01-30,
User offline. Last seen 1 year 27 weeks ago.
Re: which ORM to use?
You should use O/R Broker of course.

On Mon, Aug 30, 2010 at 2:27 PM, Gilberto Garcia <giba.dmb@gmail.com> wrote:
Hi guys,

I'm new to Scala and finding out which ORM solution to use is being
really painfully task.

Basically we have, in one hand, all ORM frameworks developed for java
and using them make me fell a little bit uncomfortable, I mean, I'm
learning Scala 'cause I want a different solution from the ones
offered by the java world, so, why the heck should I continuing using
all those java ORM frameworks and continuing making things in the java
way?

What's the issue here? Is the lack of Scala "native" solution due to
the fact that it's a new whole world that didn't have the time to
build it's own solution? Or, the idea, from the beginning, is to use
java's ORM solutions?

So, whats the best aproach here?
what is the best ORM framework to use with Scala (Hibernate? EBean?, etc, etc)

Thanks in advance
Giba

BrunoVernay
Joined: 2010-07-28,
User offline. Last seen 1 year 25 weeks ago.
Re: which ORM to use?
Hi,Maybe a  Framework / ORM entry in the wiki would be useful ?At least to list the different solutions seen in this  thread.
I remember when I had to make system calls from Scala, I also found different ways of doing it, but no "one true path" to implement it.
Bruno
Gilberto Garcia
Joined: 2010-08-30,
User offline. Last seen 42 years 45 weeks ago.
Re: which ORM to use?

Wow, there are so many options... :D

I'll try to check them out and make a list of "why you should try" and
"why you shouldn't".

thanks again for the replies...

On Tue, Aug 31, 2010 at 11:07 AM, Bruno Vernay wrote:
> Hi,
> Maybe a  Framework / ORM entry in the wiki would be useful ?
> At least to list the different solutions seen in this  thread.
> I remember when I had to make system calls from Scala, I also found
> different ways of doing it, but no "one true path" to implement it.
> Bruno
>

dcsobral
Joined: 2009-04-23,
User offline. Last seen 38 weeks 5 days ago.
Re: which ORM to use?
Actually, most of the options given are listed in a Stack Overflow question about _non_ ORM libraries to make database queries.

On Tue, Aug 31, 2010 at 11:07, Bruno Vernay <brunovern.a@gmail.com> wrote:
Hi,Maybe a  Framework / ORM entry in the wiki would be useful ?At least to list the different solutions seen in this  thread.
I remember when I had to make system calls from Scala, I also found different ways of doing it, but no "one true path" to implement it.
Bruno



--
Daniel C. Sobral

I travel to the future all the time.
Roland Tepp
Joined: 2009-08-10,
User offline. Last seen 42 years 45 weeks ago.
RE: which ORM to use?

Care to share a link?

 

From: Daniel Sobral [mailto:dcsobral@gmail.com]
Sent: Wednesday, September 01, 2010 12:03 AM
To: Bruno Vernay
Cc: Nils Kilden-Pedersen; Gilberto Garcia; scala-user@listes.epfl.ch
Subject: Re: [scala-user] which ORM to use?

 

Actually, most of the options given are listed in a Stack Overflow question about _non_ ORM libraries to make database queries.

On Tue, Aug 31, 2010 at 11:07, Bruno Vernay <brunovern.a@gmail.com> wrote:

Hi,

Maybe a  Framework / ORM entry in the wiki would be useful ?

At least to list the different solutions seen in this  thread.

 

I remember when I had to make system calls from Scala, I also found different ways of doing it, but no "one true path" to implement it.

 

Bruno

 




dcsobral
Joined: 2009-04-23,
User offline. Last seen 38 weeks 5 days ago.
Re: which ORM to use?
Replying to the list: http://stackoverflow.com/questions/1362748/wanted-good-examples-of-scala-database-persistence

On Wed, Sep 1, 2010 at 03:57, Roland Tepp <roland@videobet.com> wrote:

Care to share a link?

 

From: Daniel Sobral [mailto:dcsobral@gmail.com]
Sent: Wednesday, September 01, 2010 12:03 AM
To: Bruno Vernay
Cc: Nils Kilden-Pedersen; Gilberto Garcia; scala-user@listes.epfl.ch
Subject: Re: [scala-user] which ORM to use?

 

Actually, most of the options given are listed in a Stack Overflow question about _non_ ORM libraries to make database queries.

On Tue, Aug 31, 2010 at 11:07, Bruno Vernay <brunovern.a@gmail.com> wrote:

Hi,

Maybe a  Framework / ORM entry in the wiki would be useful ?

At least to list the different solutions seen in this  thread.

 

I remember when I had to make system calls from Scala, I also found different ways of doing it, but no "one true path" to implement it.

 

Bruno

 




Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland