什么好的orm api会很好地与scala或erlang工作 [英] what good orm api will work well with scala or erlang

查看:136
本文介绍了什么好的orm api会很好地与scala或erlang工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑采用scala编程,但我真的很担心我的基于ORM的应用程序将会发生什么。我目前使用hibernate作为我的ORM,我发现它是一个非常可靠的工具。我想知道是否有任何ORM工具高效但是写在scala中,或者将hibernate与它无缝工作。我不想再开始写出无尽的sql查询(像JDBC的日子)。我也有同样的想法erlang。有没有一个很好的orm在那里为erlang?我可以使用erlang与其他DBMS,如oracle和mysql与ORM

解决方案

Erlang不是面向对象的,所以你想要尝试和打破一些像ORM库一样黑客,这些都是因为关系数据库和OO之间存在严重的阻抗不匹配。 Erlang也会有同样的错配。 Mnesia更是一个分层数据库,该模型与Erlang等功能语言一起工作良好。 ORM库并不是全部,尤其不是Erlang。


I'm considering taking up scala programming but i'm really concerned about what will become of my ORM based applications. I currently use hibernate as my ORM and i find it a really reliable tool. I'd like to know if there's any ORM tool as efficient but written in scala, or will hibernate work seamlessly with it. i don't want to have to start writing endless sql queries again (like the days of JDBC). I also have the same thought about erlang. is there a good orm out there for erlang?? and can i use erlang with other DBMS like oracle and mysql with ORM

解决方案

Erlang isn't object oriented so why would you want to try and shoehorn something as hacky as an ORM library, which all of them all because there is a severe impedance mismatch between Relational Databases and OO. The same mismatch would be there as well with Erlang. Mnesia is more of a hierarchical database and that model works well with a functional language like Erlang. ORM libraries are not the end all be all, especially not for Erlang.

这篇关于什么好的orm api会很好地与scala或erlang工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆